*** VERSION 5.6.0 ***
[NeonServV5.git] / src / modules / global.mod / cmd_global_motd.c
index 0340e47f768a1ab1d4b9e47ac1cb3157e70f5834..6e39f9ae7de8dbbc5b3375eff5e74916dc95ef8a 100644 (file)
@@ -1,4 +1,4 @@
-/* cmd_global_motd.c - NeonServ v5.3
+/* cmd_global_motd.c - NeonServ v5.6
  * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
@@ -30,7 +30,7 @@ CMD_BIND(global_cmd_motd) {
     while (fgets(line, MAXLEN, f) != NULL) {
         if((a = strchr(line, '\n'))) 
             *a = '\0';
-        reply(getTextBot(), user, "%s", line);
+        reply(textclient, user, "%s", line);
     }
     fclose(f);
 }
\ No newline at end of file