multiple fixes
[NeonServV5.git] / src / modules / NeonServ.mod / cmd_neonserv_addtimeban.c
index 837812e8e856e6264316c95ddd928bc83d815395..c74a029b0400aa2eeda1f75b524051e23455e9c2 100644 (file)
@@ -55,7 +55,7 @@ CMD_BIND(neonserv_cmd_addtimeban) {
         cache->reason = strdup(merge_argv(argv, 2, argc));
     } else
         cache->reason = NULL;
-    get_userlist(chan, neonserv_cmd_addtimeban_userlist_lookup, cache);
+    get_userlist(chan, module_id, neonserv_cmd_addtimeban_userlist_lookup, cache);
 }
 
 static USERLIST_CALLBACK(neonserv_cmd_addtimeban_userlist_lookup) {
@@ -132,7 +132,7 @@ static void neonserv_cmd_addtimeban_async1(struct ClientSocket *client, struct C
     char banidBuf[20];
     sprintf(nameBuf, "ban_%d", banid);
     sprintf(banidBuf, "%d", banid);
-    timeq_add_name(nameBuf, duration, channel_ban_timeout, strdup(banidBuf));
+    timeq_add_name(nameBuf, duration, module_id, channel_ban_timeout, strdup(banidBuf));
     reply(textclient, user, "NS_TIMEBAN_DONE", mask, chan->name, timeToStr(user, duration, 2, nameBuf), match_count);
     logEvent(event);
 }