added new multi log system
[NeonServV5.git] / src / modules / NeonServ.mod / cmd_neonserv_halfop.c
index 3e775b8202c852ea76e2cdbeb577b9eb6f31c01b..8c8338981369e380def2a1b8d222264074d7e787 100644 (file)
@@ -1,4 +1,4 @@
-/* cmd_neonserv_halfop.c - NeonServ v5.5
+/* 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,7 +33,7 @@ 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;