added new multi log system
[NeonServV5.git] / src / modules / NeonServ.mod / cmd_neonserv_resync.c
index 7c60a6eb044d6265d2db0735e52f8675dae49da5..46a095ee15afc6358b16039021dc28b4480937ff 100644 (file)
@@ -1,4 +1,4 @@
-/* cmd_neonserv_resync.c - NeonServ v5.3
+/* cmd_neonserv_resync.c - NeonServ v5.6
  * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
@@ -51,17 +51,17 @@ CMD_BIND(neonserv_cmd_resync) {
     }
     struct neonserv_cmd_resync_cache *cache = malloc(sizeof(*cache));
     if (!cache) {
-        perror("malloc() failed");
+        printf_log("neonserv", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__);
         return;
     }
     cache->client = client;
-    cache->textclient = getTextBot();
+    cache->textclient = textclient;
     cache->user = user;
     cache->usermask = (usermask ? strdup(usermask) : NULL);
     cache->min_access = min_access;
     cache->max_access = max_access;
     cache->override_noautoop = override_noautoop;
-    get_userlist_with_invisible(chan, neonserv_cmd_resync_userlist_lookup, cache);
+    get_userlist_with_invisible(chan, module_id, neonserv_cmd_resync_userlist_lookup, cache);
 }
 
 static USERLIST_CALLBACK(neonserv_cmd_resync_userlist_lookup) {