Made the join command not send the WHO command if the bot is already on the channel.

This commit is contained in:
Jeremy Fincher 2003-04-18 08:22:02 +00:00
parent fa53cf34d5
commit 5adbaf5be4

View File

@ -62,6 +62,7 @@ class AdminCommands(privmsgs.CapabilityCheckingPrivmsg):
channels.append(channel) channels.append(channel)
irc.queueMsg(ircmsgs.joins(channels, keys)) irc.queueMsg(ircmsgs.joins(channels, keys))
for channel in channels: for channel in channels:
if channel not in irc.state.channels:
irc.queueMsg(ircmsgs.who(channel)) irc.queueMsg(ircmsgs.who(channel))
def nick(self, irc, msg, args): def nick(self, irc, msg, args):