added new multi log system
[NeonServV5.git] / src / modules / NeonServ.mod / cmd_neonserv_kick.c
index 15c7d120aebc0135a37702e2a7d95add68e1f68a..a4d3481e713e242d0b808c9451aad83c2acb6851 100644 (file)
@@ -1,4 +1,4 @@
-/* cmd_neonserv_kick.c - NeonServ v5.4
+/* cmd_neonserv_kick.c - NeonServ v5.6
  * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
@@ -35,7 +35,7 @@ struct neonserv_cmd_kick_cache {
 CMD_BIND(neonserv_cmd_kick) {
     struct neonserv_cmd_kick_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;