From bc5ec5d0f0c854031d37e9fa63c4c80e16d6ad32 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 30 Sep 2003 15:21:02 +0000 Subject: [PATCH] Fix for recent discovery that some misconfigured servers will send 422 instead of 376. --- plugins/Relay.py | 2 ++ plugins/Services.py | 1 + 2 files changed, 3 insertions(+) diff --git a/plugins/Relay.py b/plugins/Relay.py index 91a460f27..88570bce1 100644 --- a/plugins/Relay.py +++ b/plugins/Relay.py @@ -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): """ diff --git a/plugins/Services.py b/plugins/Services.py index 428409959..c0a46c090 100644 --- a/plugins/Services.py +++ b/plugins/Services.py @@ -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.*(?