cvs: pearbot /modules botcmds.php

From: Date: Fri, 25 Jul 2003 17:05:23 +0000
Subject: cvs: pearbot /modules botcmds.php
Groups: php.pear.bot 
Request: Send a blank email to pear-bot+get-21@lists.php.net to get a copy of this message
meebey Fri Jul 25 13:05:23 2003 EDT Modified files: /pearbot/modules botcmds.php Log: - removed not needed else{}. Index: pearbot/modules/botcmds.php diff -u pearbot/modules/botcmds.php:1.1 pearbot/modules/botcmds.php:1.2 --- pearbot/modules/botcmds.php:1.1 Fri Jul 25 12:58:06 2003 +++ pearbot/modules/botcmds.php Fri Jul 25 13:05:22 2003 @@ -1,9 +1,9 @@ <?php /** - * $Id: botcmds.php,v 1.1 2003/07/25 16:58:06 meebey Exp $ - * $Revision: 1.1 $ + * $Id: botcmds.php,v 1.2 2003/07/25 17:05:22 meebey Exp $ + * $Revision: 1.2 $ * $Author: meebey $ - * $Date: 2003/07/25 16:58:06 $ + * $Date: 2003/07/25 17:05:22 $ * * Copyright (c) 2003 Nicolas CHAILLAN <nicos@php.net> */ @@ -217,19 +217,19 @@ if (($messageex_count = count($data->messageex)) != 2) { return; - } else { - $who = $data->messageex[1]; - if ($irc->isJoined($data->channel, $who)) { - return; - } - - if ($irc->isMe($who)) { - $irc->message(SMARTIRC_TYPE_CHANNEL, $data->channel, 'Hey, I am not fool, I will not invite myself!'); - return; - } - - $irc->invite($who, $data->channel); } + + $who = $data->messageex[1]; + if ($irc->isJoined($data->channel, $who)) { + return; + } + + if ($irc->isMe($who)) { + $irc->message(SMARTIRC_TYPE_CHANNEL, $data->channel, 'Hey, I am not fool, I will not invite myself!'); + return; + } + + $irc->invite($who, $data->channel); } /* basic functions */

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