Просмотр исходного кода

* Port [3456] to 1.2.14
* Fix logging/usage bug in cmd_mop. (fixes #313)



svn: 3457

Bryan Drewery 19 лет назад
Родитель
Сommit
592fa9fc60
2 измененных файлов с 5 добавлено и 1 удалено
  1. 1 0
      doc/UPDATES
  2. 4 1
      src/mod/irc.mod/cmdsirc.c

+ 1 - 0
doc/UPDATES

@@ -51,6 +51,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * Bots will now cycle nicks on servers which claim their nick is invalid. (fixes #311)
 * Limit bots no longer set limit when 'chanmode -l' is set. (fixes #294)
 * Fixed +closed from interfering with 'chanmode -pi'. (fixes #294)
+* Fix logging/usage bug in cmd_mop. (fixes #313)
 
 1.2.13 - http://wraith.shatow.net/milestone/1.2.13
 * Fix cmd_chanset accepting invalid flags

+ 4 - 1
src/mod/irc.mod/cmdsirc.c

@@ -1035,7 +1035,10 @@ static void cmd_mop(int idx, char *par)
 
   putlog(LOG_CMDS, "*", "#%s# (%s) mop %s", dcc[idx].nick, all ? "*" : (chan ? chan->dname : ""), par);
 
-  if (!chan && !all) {
+  if (!chan)
+    return;
+
+  if (!all) {
     dprintf(idx, "Usage: mop <channel|*>\n");
     return;
   }