Increment replies for list modes with /mode

Otherwise only /ban can be used to list bans and /mode b or /mode
+b won't show the listing.
weechat-hashes
C. McEnroe 2021-10-17 11:55:43 -04:00
parent b6cf41ab77
commit fca48fd05d
1 changed files with 6 additions and 0 deletions

View File

@ -243,6 +243,12 @@ static void commandMode(uint id, char *params) {
} }
} else { } else {
if (params) { if (params) {
if (!params[1] || (params[0] == '+' && !params[2])) {
char m = (params[0] == '+' ? params[1] : params[0]);
if (m == 'b') replies[ReplyBan]++;
if (m == network.excepts) replies[ReplyExcepts]++;
if (m == network.invex) replies[ReplyInvex]++;
}
ircFormat("MODE %s %s\r\n", idNames[id], params); ircFormat("MODE %s %s\r\n", idNames[id], params);
} else { } else {
ircFormat("MODE %s\r\n", idNames[id]); ircFormat("MODE %s\r\n", idNames[id]);