From c17ccc95b4641d7ce732b610d4f6b1f8329530f9 Mon Sep 17 00:00:00 2001 From: Juhani Haverinen Date: Sat, 28 Mar 2015 01:24:13 +0200 Subject: [PATCH] Lessen WHOIS spam when #(de)?(op|voice) with multiple alguments --- botcmd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/botcmd.py b/botcmd.py index dfb6c26..197766d 100644 --- a/botcmd.py +++ b/botcmd.py @@ -186,8 +186,8 @@ def chmode(irc, chan, nick, mode, args): if isauthorized(irc, chan, nick): irc.send('MODE %s %s %s' % (chan, mode, nick)) else: - for name in args: - if isauthorized(irc, chan, nick): + if isauthorized(irc, chan, nick): + for name in args: irc.send('MODE %s %s %s' % (chan, mode, name)) def istrusted(chan, account):