From 47882bb359119bdc807a8ce5a8e91e6a553c2175 Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 27 Mar 2006 02:55:50 +0000 Subject: 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 --- src/modules/m_remove.cpp | 9 --------- 1 file changed, 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))) -- cgit v1.2.3