added new multi log system
[NeonServV5.git] / src / modules / NeonServ.mod / cmd_neonserv_voice.c
index 351ac2ae15de69810e6a6cc72bc5f92fab749677..ea3de407ed81492f0cdd920dc40dac26d63ff5f0 100644 (file)
@@ -1,4 +1,4 @@
-/* cmd_neonserv_voice.c - NeonServ v5.4
+/* cmd_neonserv_voice.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_voice_cache {
 CMD_BIND(neonserv_cmd_voice) {
     struct neonserv_cmd_voice_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;