handle "cannot send to channel" errors by reconnecting too
authordiv0 <div0@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Tue, 10 Feb 2009 07:30:29 +0000 (07:30 +0000)
committerdiv0 <div0@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Tue, 10 Feb 2009 07:30:29 +0000 (07:30 +0000)
git-svn-id: svn://svn.icculus.org/nexuiz/trunk@5822 f962a42d-fe04-0410-a3ab-8c8b0445ebaa

server/rcon2irc/rcon2irc.pl

index f75cce6..ee664f2 100755 (executable)
@@ -1189,6 +1189,7 @@ sub cond($)
 
        # detect IRC errors and reconnect
        [ irc => q{ERROR .*} => \&irc_error ],
+       [ irc => q{:[^ ]* 404 .*} => \&irc_error ], # cannot send to channel
        [ system => q{error irc} => \&irc_error ],
 
        # IRC nick in use