summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-27 02:55:50 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-27 02:55:50 +0000
commit47882bb359119bdc807a8ce5a8e91e6a553c2175 (patch)
treeaf715c4ad04176d9f51da76147589fae2ca69681 /src
parent34f7a13834edba4a6c9ba41ef98947ddfce1fc4e (diff)
Removed unused check for valid channel name - if it's invalid, it won't exist in the first place ;p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3766 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_remove.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/modules/m_remove.cpp b/src/modules/m_remove.cpp
index 89b3234ec..cb6c3da73 100644
--- a/src/modules/m_remove.cpp
+++ b/src/modules/m_remove.cpp
@@ -89,15 +89,6 @@ class cmd_remove : public command_t
/* If the target nick exists... */
if (target && channel)
{
- for (unsigned int x = 0; x < strlen(parameters[1]); x++)
- {
- if ((parameters[1][0] != '#') || (parameters[1][x] == ' ') || (parameters[1][x] == ','))
- {
- Srv->SendTo(NULL,user,"NOTICE "+std::string(user->nick)+" :*** Invalid characters in channel name");
- return;
- }
- }
-
/* This is adding support for the +q and +a channel modes, basically if they are enabled, and the remover has them set. */
/* Then we change the @|%|+ to & if they are +a, or ~ if they are +q */
if (user->GetExt("cm_protect_"+std::string(channel->name)))