[SimBot-commits] CVS: simbot simbot.pl,1.132,1.133
Status: Abandoned
Brought to you by:
kstange
|
From: Kevin S. <ks...@us...> - 2005-07-29 06:44:48
|
Update of /cvsroot/simbot/simbot In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25622 Modified Files: simbot.pl Log Message: Fix two small bugs: services. sets mode TheSimBot +e is not a channel mode change; recap was logging /me with the nickname doubled. Index: simbot.pl =================================================================== RCS file: /cvsroot/simbot/simbot/simbot.pl,v retrieving revision 1.132 retrieving revision 1.133 diff -u -d -p -r1.132 -r1.133 --- simbot.pl 28 Jul 2005 00:50:09 -0000 1.132 +++ simbot.pl 29 Jul 2005 06:44:40 -0000 1.133 @@ -1962,7 +1962,8 @@ sub channel_topic { sub channel_mode { my ($nick) = split(/!/, $_[ ARG0 ]); my ($chan, $modes, @args) = @_[ ARG1, ARG2, ARG3 .. $#_ ]; - if ($nick ne $chan) { + # If the mode change was made on the bot, it is not a channel mode. + if ($chan ne $chosen_nick) { &debug(DEBUG_STD, "$nick set mode $modes @args in $chan.\n"); foreach(keys(%event_channel_mode)) { &plugin_callback($_, $event_channel_mode{$_}, ($nick, $chan, 'MODE', $modes, @args)); @@ -2119,6 +2120,8 @@ sub server_supports { # nicely. Right now many plugins assume that the channel we are # in is the channel defined in the config file, which may # not be true. + # The changes necessary to do this will make multi-channel + # support easier in the future. $kernel->post(bot => mode => $chosen_nick => '+Q'); } |