added new multi log system
[NeonServV5.git] / src / modules / NeonServ.mod / cmd_neonserv_opall.c
index 3837052f9e39c4fd184b96678815fbea6f8e0fc0..3f2646ac6082cb832237f4bc4515e3b793ff363e 100644 (file)
@@ -1,4 +1,4 @@
-/* cmd_neonserv_opall.c - NeonServ v5.4
+/* cmd_neonserv_opall.c - NeonServ v5.6
  * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
@@ -33,16 +33,16 @@ struct neonserv_cmd_opall_cache {
 
 CMD_BIND(neonserv_cmd_opall) {
     if(!argc || strcmp(argv[0], "FORCE")) {
-        reply(getTextBot(), user, "NS_OPALL_SECURITY", chan->name);
+        reply(textclient, user, "NS_OPALL_SECURITY", chan->name);
         return;
     }
     struct neonserv_cmd_opall_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;
     if(argc > 1) {