Переглянути джерело

* Port [3692] to 1.2.15
* Make the 'detect login' use less shell resources



svn: 3693

Bryan Drewery 18 роки тому
батько
коміт
077849b13f
2 змінених файлів з 2 додано та 1 видалено
  1. 1 0
      doc/UPDATES
  2. 1 1
      src/shell.c

+ 1 - 0
doc/UPDATES

@@ -15,6 +15,7 @@
 * Fix a bug where some nets did not save userfile correctly
 * Fix a case where 'botcmd ?' would loop forever when a hub had a 1 character handle
 * Change default realname to mimic bitchx
+* Make the 'detect login' use less shell resources
 
 1.2.14 - http://wraith.botpack.net/milestone/1.2.14
 * Fix another bug in shell functions. (fixes #321)

+ 1 - 1
src/shell.c

@@ -185,7 +185,7 @@ void check_last() {
   if (conf.username) {
     char *out = NULL, buf[50] = "";
 
-    simple_sprintf(buf, "last %s", conf.username);
+    simple_sprintf(buf, "last -10 %s", conf.username);
     if (shell_exec(buf, NULL, &out, NULL)) {
       if (out) {
         char *p = NULL;