Bläddra i källkod

* Fixed cmd_net[ps|last] not working. (#130, #131)

svn: 2271
Bryan Drewery 21 år sedan
förälder
incheckning
52f577ec90
2 ändrade filer med 3 tillägg och 2 borttagningar
  1. 1 0
      doc/UPDATES
  2. 2 2
      src/cmds.c

+ 1 - 0
doc/UPDATES

@@ -29,6 +29,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * Fixed a segfault/cpulock with mode parsing. (#25)
 * Fixed an issue with bot respdoning to TCM CTCP VERSIONS too slowly at times on connect. (#128)
 * Added syslog style repeated log detection for all logging.
+* Fixed cmd_net[ps|last] not working. (#130, #131)
 
 1.2.4
 * Fixed cmd_botset not displaying botnick.

+ 2 - 2
src/cmds.c

@@ -3697,7 +3697,7 @@ static void cmd_netps(int idx, char * par) {
 
   char buf[1024] = "";
 
-  simple_snprintf(buf, sizeof par, "exec ps %s", par);
+  simple_snprintf(buf, sizeof(Buf), "exec ps %s", par);
   botnet_send_cmd_broad(-1, conf.bot->nick, dcc[idx].nick, idx, buf);
 }
 
@@ -3711,7 +3711,7 @@ static void cmd_netlast(int idx, char * par) {
 
   char buf[1024] = "";
 
-  simple_snprintf(buf, sizeof par, "exec last %s", par);
+  simple_snprintf(buf, sizeof(Buf), "exec last %s", par);
   botnet_send_cmd_broad(-1, conf.bot->nick, dcc[idx].nick, idx, buf);
 }