cvs: pear /Net_SmartIRC SmartIRC.php

From: Date: Fri, 17 Jan 2003 20:23:18 +0000
Subject: cvs: pear /Net_SmartIRC SmartIRC.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-8348@lists.php.net to get a copy of this message
meebey Fri Jan 17 15:23:18 2003 EDT Modified files: /pear/Net_SmartIRC SmartIRC.php Log: - fixed usermode parameter handling in the login() method. Index: pear/Net_SmartIRC/SmartIRC.php diff -u pear/Net_SmartIRC/SmartIRC.php:1.7 pear/Net_SmartIRC/SmartIRC.php:1.8 --- pear/Net_SmartIRC/SmartIRC.php:1.7 Thu Jan 16 18:53:43 2003 +++ pear/Net_SmartIRC/SmartIRC.php Fri Jan 17 15:23:17 2003 @@ -1,9 +1,9 @@ <?php /** - * $Id: SmartIRC.php,v 1.7 2003/01/16 23:53:43 meebey Exp $ - * $Revision: 1.7 $ + * $Id: SmartIRC.php,v 1.8 2003/01/17 20:23:17 meebey Exp $ + * $Revision: 1.8 $ * $Author: meebey $ - * $Date: 2003/01/16 23:53:43 $ + * $Date: 2003/01/17 20:23:17 $ * * Net_SmartIRC * Communication for PHP with IRC networks @@ -867,8 +867,9 @@ $this->_send('PASS '.$this->_password, SMARTIRC_CRITICAL); } - if ($usermode !== null) { - $this->_usermode = $usermode; + if (!is_numeric($usermode)) { + $this->log(SMARTIRC_DEBUG_NOTICE, 'DEBUG_NOTICE: login() usermode ('.$usermode.') is not valid, will use 0 instead'); + $usermode = 0; } $this->_send('NICK '.$this->_nick, SMARTIRC_CRITICAL);

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