From 5adbaf5be4c751aee3def2aeae4946cf58b7de23 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 18 Apr 2003 08:22:02 +0000 Subject: [PATCH] Made the join command not send the WHO command if the bot is already on the channel. --- src/AdminCommands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/AdminCommands.py b/src/AdminCommands.py index 4cdbdf519..4bd659aca 100755 --- a/src/AdminCommands.py +++ b/src/AdminCommands.py @@ -62,7 +62,8 @@ class AdminCommands(privmsgs.CapabilityCheckingPrivmsg): channels.append(channel) irc.queueMsg(ircmsgs.joins(channels, keys)) for channel in channels: - irc.queueMsg(ircmsgs.who(channel)) + if channel not in irc.state.channels: + irc.queueMsg(ircmsgs.who(channel)) def nick(self, irc, msg, args): """