Fix for recent discovery that some misconfigured servers will send 422 instead of 376.

This commit is contained in:
Jeremy Fincher 2003-09-30 15:21:02 +00:00
parent d013623e27
commit bc5ec5d0f0
2 changed files with 3 additions and 0 deletions

View File

@ -151,6 +151,8 @@ class Relay(callbacks.Privmsg):
def do376(self, irc, msg):
if self.channels:
irc.queueMsg(ircmsgs.joins(self.channels))
do377 = do376
do422 = do376
def startrelay(self, irc, msg, args):
"""<network abbreviation for current server>

View File

@ -94,6 +94,7 @@ class Services(privmsgs.CapabilityCheckingPrivmsg):
# JOIN messages also being sent on 376.
irc.sendMsg(ircmsgs.privmsg(self.nickserv, identify))
do377 = do376
do422 = do376
_owned = re.compile('nick.*(?<!not)(?:registered|protected|owned)')
def doNotice(self, irc, msg):