added "nowho" parameter to debug userlist and fixed memory leak in DBHelper.c
[NeonServV5.git] / src / cmd_neonserv_extscript.c
index 6342356c055959752f145c514d331219cb376ec1..e4a4e2e345ca02688eb6a6a0182ef51e00e69826 100644 (file)
@@ -1,5 +1,5 @@
 /* cmd_neonserv_extscript.c - NeonServ v5.3
- * Copyright (C) 2011  Philipp Kreil (pk910)
+ * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -139,7 +139,7 @@ CMD_BIND(neonserv_cmd_extscript) {
     #ifndef WIN32
     fcntl(fileno(cache->pipe), F_SETFL, O_NONBLOCK);
     #endif
-    timeq_add(1, neonserv_cmd_extscript_callback, cache);
+    timeq_uadd(200, neonserv_cmd_extscript_callback, cache);
 }
 
 static TIMEQ_CALLBACK(neonserv_cmd_extscript_callback) {
@@ -163,7 +163,7 @@ static TIMEQ_CALLBACK(neonserv_cmd_extscript_callback) {
         else
             reply(cache->textclient, cache->user, "%s", command);
     }
-    timeq_add(1, neonserv_cmd_extscript_callback, cache);
+    timeq_uadd(200, neonserv_cmd_extscript_callback, cache);
 }