*** VERSION 5.4.0 ***
[NeonServV5.git] / src / modules / NeonSpam.mod / event_neonspam_chanmsg.c
index 163315db30fd03e13c096403d1b3fab85faa9b29..4ab7c833b23c72867924953d6419845066df6a3e 100644 (file)
@@ -1,4 +1,4 @@
-/* event_neonspam_chanmsg.c - NeonServ v5.3
+/* event_neonspam_chanmsg.c - NeonServ v5.4
  * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
@@ -144,7 +144,7 @@ static void neonspam_event_chanmsg(struct UserNode *user, struct ChanNode *chan,
             cache->settings = settings;
             cache->warn = warn;
             cache->punish = punish;
-            get_userauth(user, neonspam_event_chanmsg_nick_lookup, cache);
+            get_userauth(user, module_id, neonspam_event_chanmsg_nick_lookup, cache);
         }
         
     }
@@ -248,7 +248,7 @@ static void neonspam_event_chanmsg_punish(struct ClientSocket *client, struct Ch
                     char banidBuf[20];
                     sprintf(nameBuf, "ban_%d", banid);
                     sprintf(banidBuf, "%d", banid);
-                    timeq_add_name(nameBuf, punish_time, channel_ban_timeout, strdup(banidBuf));
+                    timeq_add_name(nameBuf, punish_time, module_id, channel_ban_timeout, strdup(banidBuf));
                 }
             case 2: //KICKBAN
                 if(!banmask)