added new multi log system
[NeonServV5.git] / src / modules / NeonServ.mod / cmd_neonserv_halfop.c
index ba684cb9ede5b21f9169d149ba855b021d37f404..8c8338981369e380def2a1b8d222264074d7e787 100644 (file)
@@ -1,4 +1,4 @@
-/* cmd_neonserv_halfop.c - NeonServ v5.3
+/* cmd_neonserv_halfop.c - NeonServ v5.6
  * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
@@ -33,15 +33,15 @@ struct neonserv_cmd_halfop_cache {
 CMD_BIND(neonserv_cmd_halfop) {
     struct neonserv_cmd_halfop_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->event = event;
     cache->nicks = strdup(merge_argv(argv, 0, argc));
-    get_userlist_if_invisible(chan, neonserv_cmd_halfop_userlist_lookup, cache);
+    get_userlist_if_invisible(chan, module_id, neonserv_cmd_halfop_userlist_lookup, cache);
 }
 
 static USERLIST_CALLBACK(neonserv_cmd_halfop_userlist_lookup) {