@@ -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
@@ -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;
}