Browse Source

* Fixed cmd_quit working over botcmd. (#108)

svn: 2147
Bryan Drewery 21 years ago
parent
commit
a864ffe1cf
2 changed files with 6 additions and 0 deletions
  1. 1 0
      doc/UPDATES
  2. 5 0
      src/cmds.c

+ 1 - 0
doc/UPDATES

@@ -142,6 +142,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * Changes to console flag requirements: +rbh (PERM OWNER), +vd (+a), +egu (+n). (#99)
 * cmd_botcmd blocks the following cmds for '*': die, restard, suicide, jump. (#17)
 * Fixed cmd_[ch]handle saving userfile when changes weren't actually made.
+* Fixed cmd_quit working over botcmd. (#108)
 
 1.2.2
 * Don't sanity check flags for users on DCC CHAT if they are on the bot via .botcmd.

+ 5 - 0
src/cmds.c

@@ -4217,6 +4217,11 @@ static void cmd_whoami(int idx, char *par)
 
 static void cmd_quit(int idx, char *text)
 {
+  if (dcc[idx].simul >= 0) {
+    dprintf(idx, "Sorry, this cmd is not available with remote cmds.\n");
+    return;
+  }
+
 	putlog(LOG_CMDS, "*", "#%s# quit %s", dcc[idx].nick, text);
 
 	check_bind_chof(dcc[idx].nick, idx);