cvs: pear /Net_SmartIRC/SmartIRC messagehandler.php

From: Date: Sun, 08 Jun 2003 23:06:18 +0000
Subject: cvs: pear /Net_SmartIRC/SmartIRC messagehandler.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-10781@lists.php.net to get a copy of this message
meebey Sun Jun 8 19:06:18 2003 EDT Modified files: /pear/Net_SmartIRC/SmartIRC messagehandler.php Log: - fixed bug in _mode() method. Index: pear/Net_SmartIRC/SmartIRC/messagehandler.php diff -u pear/Net_SmartIRC/SmartIRC/messagehandler.php:1.16 pear/Net_SmartIRC/SmartIRC/messagehandler.php:1.17 --- pear/Net_SmartIRC/SmartIRC/messagehandler.php:1.16 Sun Jun 8 17:46:35 2003 +++ pear/Net_SmartIRC/SmartIRC/messagehandler.php Sun Jun 8 19:06:18 2003 @@ -1,9 +1,9 @@ <?php /** - * $Id: messagehandler.php,v 1.16 2003/06/08 21:46:35 meebey Exp $ - * $Revision: 1.16 $ + * $Id: messagehandler.php,v 1.17 2003/06/08 23:06:18 meebey Exp $ + * $Revision: 1.17 $ * $Author: meebey $ - * $Date: 2003/06/08 21:46:35 $ + * $Date: 2003/06/08 23:06:18 $ * * Copyright (c) 2002-2003 Mirco "MEEBEY" Bauer <mail@meebey.net> <http://www.meebey.net> * @@ -145,9 +145,11 @@ switch($mode[$i]) { case '-': $remove = true; + $add = false; break; case '+': $add = true; + $remove = false; break; // user modes case 'o': @@ -181,11 +183,11 @@ case 'k': $key = array_shift($parameters); if ($add) { - $irc->log(SMARTIRC_DEBUG_CHANNELSYCING, 'DEBUG_CHANNELSYCING: stored channel key for: '.$channel->name, __FILE__, __LINE__); + $irc->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYCING: stored channel key for: '.$channel->name, __FILE__, __LINE__); $channel->key = $key; } if ($remove) { - $irc->log(SMARTIRC_DEBUG_CHANNELSYCING, 'DEBUG_CHANNELSYCING: removed channel key for: '.$channel->name, __FILE__, __LINE__); + $irc->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYCING: removed channel key for: '.$channel->name, __FILE__, __LINE__); $channel->key = ''; } break; @@ -194,15 +196,15 @@ if ($mode[$i] == 'b') { $hostmask = array_shift($parameters); if ($add) { - $irc->log(SMARTIRC_DEBUG_CHANNELSYCING, 'DEBUG_CHANNELSYCING: adding ban: '.$hostmask.' for: '.$channel->name, __FILE__, __LINE__); + $irc->log(SMARTIRC_DEBUG_CHANNELSYCNING, 'DEBUG_CHANNELSYCING: adding ban: '.$hostmask.' for: '.$channel->name, __FILE__, __LINE__); $channel->bans[$hostmask] = true; } if ($remove) { - $irc->log(SMARTIRC_DEBUG_CHANNELSYCING, 'DEBUG_CHANNELSYCING: removing ban: '.$hostmask.' for: '.$channel->name, __FILE__, __LINE__); + $irc->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYCING: removing ban: '.$hostmask.' for: '.$channel->name, __FILE__, __LINE__); unset($channel->bans[$hostmask]); } } else { - $irc->log(SMARTIRC_DEBUG_CHANNELSYCING, 'DEBUG_CHANNELSYCING: storing unknown channelmode ('.$mode.') in channel->mode for: '.$channel->name, __FILE__, __LINE__); + $irc->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYCING: storing unknown channelmode ('.$mode.') in channel->mode for: '.$channel->name, __FILE__, __LINE__); $channel->mode = str_replace($mode[$i], '', $channel->mode); } }

« previous php.pear.cvs (#10781) next »