*** VERSION 5.6.0 ***
[NeonServV5.git] / src / modules / global.mod / cmd_global_meminfo.c
index bdcf45a50e266769aa0765a4f434de952922b4f6..2685798a29ab8cb96edea532df39c7187078f01a 100644 (file)
@@ -1,4 +1,4 @@
-/* cmd_global_meminfo.c - NeonServ v5.3
+/* cmd_global_meminfo.c - NeonServ v5.6
  * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
@@ -16,7 +16,7 @@
  */
 
 #include "cmd_global.h"
-#include "memoryInfo.h"
+#include "../../memoryInfo.h"
 
 /*
 * no arguments
@@ -24,7 +24,7 @@
 
 CMD_BIND(global_cmd_meminfo) {
     #ifndef ENABLE_MEMORY_DEBUG
-    reply(getTextBot(), user, "NS_MEMINFO_DISABLED");
+    reply(textclient, user, "NS_MEMINFO_DISABLED");
     #else
     if(argc > 0) {
         struct Table *table;
@@ -70,7 +70,7 @@ CMD_BIND(global_cmd_meminfo) {
         char **table_lines = table_end(table);
         int i;
         for(i = 0; i < table->entrys; i++) {
-            reply(getTextBot(), user, table_lines[i]);
+            reply(textclient, user, table_lines[i]);
         }
         table_free(table);
     } else {
@@ -110,7 +110,7 @@ CMD_BIND(global_cmd_meminfo) {
         char **table_lines = table_end(table);
         int i;
         for(i = 0; i < table->entrys; i++) {
-            reply(getTextBot(), user, table_lines[i]);
+            reply(textclient, user, table_lines[i]);
         }
         table_free(table);
     }