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
parent
b6cf41ab77
commit
fca48fd05d
|
@ -243,6 +243,12 @@ static void commandMode(uint id, char *params) {
|
|||
}
|
||||
} else {
|
||||
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);
|
||||
} else {
|
||||
ircFormat("MODE %s\r\n", idNames[id]);
|
||||
|
|
Loading…
Reference in New Issue