]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_antibear.cpp
Next part of Development/Hooking (see wiki)
[user/henk/code/inspircd.git] / src / modules / m_antibear.cpp
index 0c65adab380fb222d501a93167d57ea80bb15c7f..aecf143ece69695b869ebfc6624a64f3998b129b 100644 (file)
@@ -48,10 +48,8 @@ class ModuleAntiBear : public Module
                        {
                                ZLine* zl = new ZLine(ServerInstance, ServerInstance->Time(), 86400, ServerInstance->Config->ServerName,
                                                "Unless you're stuck in a time warp, you appear to be a bear bot!", user->GetIPString());
-                               if (ServerInstance->XLines->AddLine(zl))
+                               if (ServerInstance->XLines->AddLine(zl,NULL))
                                {
-                                       // XXX move events into the xline manager
-                                       FOREACH_MOD(I_OnAddGLine,OnAddZLine(86400, NULL, "Unless you're stuck in a time warp, you appear to be a bear bot!", user->MakeHostIP()));
                                        ServerInstance->XLines->ApplyLines();
                                }
                                else