]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_channames.cpp
allow channels starting with ## in m_banredirect.cpp, fixes bug #921 reported by...
[user/henk/code/inspircd.git] / src / modules / m_channames.cpp
index 008422c66e2a07535a03614c85d3aef3ad6e8df9..40746af2cab80969da4d52dc0a72e058f47ba12a 100644 (file)
@@ -81,8 +81,8 @@ class ModuleChannelNames : public Module
                        }
                        const UserMembList* users = c->GetUsers();
                        for(UserMembCIter j = users->begin(); j != users->end(); ++j)
-                               if (IS_LOCAL(j->first) && !c->ServerKickUser(j->first, "Channel name no longer valid", NULL))
-                                       delete c;
+                               if (IS_LOCAL(j->first))
+                                       c->KickUser(ServerInstance->FakeClient, j->first, "Channel name no longer valid");
                }
                badchan = false;
        }
@@ -130,7 +130,7 @@ class ModuleChannelNames : public Module
 
        virtual Version GetVersion()
        {
-               return Version("Implements config tags which allow changing characters allowed in channel names", VF_VENDOR,API_VERSION);
+               return Version("Implements config tags which allow changing characters allowed in channel names", VF_VENDOR);
        }
 };