cvs: pearbot /modules botcmds.php
[email protected] ("Mirco 'meebey' Bauer") Fri, 25 Jul 2003 17:05:23 -0000
| Newsgroups | php.pear.bot |
|---|---|
| Message-ID | <cvsmeebey1059152723@cvsserver> |
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 <[email protected]>
*/
@@ -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 */