From 2e0a91c3c7eba2bab2f6b783b2861d320f547d6f Mon Sep 17 00:00:00 2001 From: James Vega Date: Thu, 23 Sep 2004 16:28:29 +0000 Subject: [PATCH] Let's make sure we don't try to join if we're getting too close to the max number of channels we can be in. Also, irc.noReply so that things like Infobot aren't triggered. --- src/Admin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Admin.py b/src/Admin.py index 12c3d21a9..0d75c6552 100755 --- a/src/Admin.py +++ b/src/Admin.py @@ -163,8 +163,9 @@ class Admin(privmsgs.CapabilityCheckingPrivmsg): maxchannels = irc.state.supported.get('maxchannels', sys.maxint) if len(irc.state.channels) + len(channels) > maxchannels: irc.error('I\'m already too close to maximum number of ' - 'channels for this network.') + 'channels for this network.', Raise=True) irc.queueMsg(ircmsgs.joins(channels, keys)) + irc.noReply() for channel in channels: self.joins[channel] = (irc, msg)