cvs: pearbot /modules botcmds.php

From: Date: Fri, 25 Jul 2003 17:22:32 +0000
Subject: cvs: pearbot /modules botcmds.php
Groups: php.pear.bot 
Request: Send a blank email to pear-bot+get-26@lists.php.net to get a copy of this message
meebey Fri Jul 25 13:22:32 2003 EDT Modified files: /pearbot/modules botcmds.php Log: - fixed isAuthorized() calls. Index: pearbot/modules/botcmds.php diff -u pearbot/modules/botcmds.php:1.4 pearbot/modules/botcmds.php:1.5 --- pearbot/modules/botcmds.php:1.4 Fri Jul 25 13:17:58 2003 +++ pearbot/modules/botcmds.php Fri Jul 25 13:22:32 2003 @@ -1,9 +1,9 @@ <?php /** - * $Id: botcmds.php,v 1.4 2003/07/25 17:17:58 meebey Exp $ - * $Revision: 1.4 $ + * $Id: botcmds.php,v 1.5 2003/07/25 17:22:32 meebey Exp $ + * $Revision: 1.5 $ * $Author: meebey $ - * $Date: 2003/07/25 17:17:58 $ + * $Date: 2003/07/25 17:22:32 $ * * Copyright (c) 2003 Nicolas CHAILLAN <nicos@php.net> */ @@ -40,7 +40,7 @@ { global $bot; - if ($bot->isAuthorized($irc, $data)) { + if (!$bot->isAuthorized($irc, $data)) { $irc->message(SMARTIRC_TYPE_CHANNEL, $data->channel, 'Sorry '.$data->nick.', I am not fool, I dont know you, you will not op anyone.'); return; } @@ -63,7 +63,7 @@ { global $bot; - if ($bot->isAuthorized($irc, $data)) { + if (!$bot->isAuthorized($irc, $data)) { $irc->message(SMARTIRC_TYPE_CHANNEL, $data->channel, 'Sorry '.$data->nick.', I am not fool, I dont know you, you will not deop anyone.'); return; } @@ -86,7 +86,7 @@ { global $bot; - if ($bot->isAuthorized($irc, $data) !== false) { + if (!$bot->isAuthorized($irc, $data)) { $irc->message(SMARTIRC_TYPE_CHANNEL, $data->channel, 'Sorry '.$data->nick.', I am not fool, I dont know you, you will not voice anyone.'); return; } @@ -109,7 +109,7 @@ { global $bot; - if ($bot->isAuthorized($irc, $data) !== false) { + if (!$bot->isAuthorized($irc, $data)) { $irc->message(SMARTIRC_TYPE_CHANNEL, $data->channel, 'Sorry '.$data->nick.', I am not fool, I dont know you, you will not devoice anyone.'); return; } @@ -133,7 +133,7 @@ global $bot; $new_topic = ''; - if ($bot->isAuthorized($irc, $data) !== false) { + if (!$bot->isAuthorized($irc, $data)) { $irc->message(SMARTIRC_TYPE_CHANNEL, $data->channel, 'Sorry '.$data->nick.', I am not fool, I dont know you, you will not change the topic.'); return; } @@ -164,7 +164,7 @@ global $bot; $reason = ''; - if ($bot->isAuthorized($irc, $data) !== false) { + if (!$bot->isAuthorized($irc, $data)) { $irc->message(SMARTIRC_TYPE_CHANNEL, $data->channel, 'Sorry '.$data->nick.', I am not fool, I dont know you, you will not kick anyone.'); return; } @@ -205,7 +205,7 @@ { global $bot; - if ($bot->isAuthorized($irc, $data) !== false) { + if (!$bot->isAuthorized($irc, $data)) { $irc->message(SMARTIRC_TYPE_CHANNEL, $data->channel, 'Sorry '.$data->nick.', I am not fool, I dont know you, you will not invite anyone.'); return; }

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