added new multi log system
[NeonServV5.git] / src / modules / global.mod / cmd_global_register.c
index 0e4445ba31a7272bab6cacc7c3eff05571b47404..03fa9323f4294f3183a07e4707eea3ceacb7fe58 100644 (file)
@@ -1,4 +1,4 @@
-/* cmd_global_register.c - NeonServ v5.5
+/* cmd_global_register.c - NeonServ v5.6
  * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
@@ -96,7 +96,7 @@ CMD_BIND(global_cmd_register) {
             //but first lookup the auth to check if it really exists
             struct global_cmd_register_cache *cache = malloc(sizeof(*cache));
             if (!cache) {
-                perror("malloc() failed");
+                printf_log("global", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__);
                 return;
             }
             cache->client = client;
@@ -125,7 +125,7 @@ CMD_BIND(global_cmd_register) {
         } else {
             struct global_cmd_register_cache *cache = malloc(sizeof(*cache));
             if (!cache) {
-                perror("malloc() failed");
+                printf_log("global", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__);
                 return;
             }
             cache->client = client;