[vhffs-dev] [1193] Modobot join even MOTD is missing on irc server

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1193
Author:   misric
Date:     2008-05-17 01:08:48 +0200 (Sat, 17 May 2008)

Log Message:
-----------
Modobot join even MOTD is missing on irc server

Modified Paths:
--------------
    trunk/vhffs-irc/modobot.pl


Modified: trunk/vhffs-irc/modobot.pl
===================================================================
--- trunk/vhffs-irc/modobot.pl	2008-05-16 17:09:07 UTC (rev 1192)
+++ trunk/vhffs-irc/modobot.pl	2008-05-16 23:08:48 UTC (rev 1193)
@@ -459,6 +459,7 @@
 $conn->add_handler        ('cping',    \&on_ping);
 $conn->add_handler        ('crping',   \&on_ping_reply);
 $conn->add_global_handler ('376',      \&on_connect);
+$conn->add_global_handler ('422',      \&on_connect); # if MOTD is missing
 $conn->add_handler        ('cversion', \&on_cversion);
 $conn->add_handler        ('public',   \&on_public);
 $conn->add_handler        ('kick',     \&on_kick);


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/