cvs: pearbot / PEARbot.php

From: Date: Fri, 25 Jul 2003 15:50:09 +0000
Subject: cvs: pearbot / PEARbot.php
Groups: php.pear.bot 
Request: Send a blank email to pear-bot+get-18@lists.php.net to get a copy of this message
meebey Fri Jul 25 11:50:09 2003 EDT Modified files: /pearbot PEARbot.php Log: - fixed who(). Index: pearbot/PEARbot.php diff -u pearbot/PEARbot.php:1.12 pearbot/PEARbot.php:1.13 --- pearbot/PEARbot.php:1.12 Fri Jul 25 11:46:14 2003 +++ pearbot/PEARbot.php Fri Jul 25 11:50:09 2003 @@ -1,7 +1,7 @@ #!/home/meebey/php <?php /** - * $Id: PEARbot.php,v 1.12 2003/07/25 15:46:14 meebey Exp $ + * $Id: PEARbot.php,v 1.13 2003/07/25 15:50:09 meebey Exp $ * * PEARbot * this is an IRC service bot for #pear written in PHP @@ -143,14 +143,15 @@ $lookupfor = $data->messageex[1]; if ($irc->isJoined('#pear', $lookupfor)) { - $host = $irc->getUser('#pear', $lookupfor); + $user = &$irc->getUser('#pear', $lookupfor); } else { $irc->message(SMARTIRC_TYPE_CHANNEL, '#pear', $requester.": ".$lookupfor." is not in this channel"); return; } - $data->host = $host; - $data->nick = $lookupfor; + $data->nick = $user->nick; + $data->ident = $user->ident; + $data->host = $user->host; $result = $this->reverseverify($irc, $data); if ($result !== false) {

« previous php.pear.bot (#18) next »