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,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):
"""<nick>