]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_channames.cpp
Remove the intercomm system since sqlite is synchronous.
[user/henk/code/inspircd.git] / src / modules / m_channames.cpp
index 008422c66e2a07535a03614c85d3aef3ad6e8df9..c137d0e716a9bde936348e46b096f325a3987dae 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->ServerKickUser(j->first, "Channel name no longer valid", NULL);
                }
                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);
        }
 };