LMPX.COM |
Home | Linux | Mysql | PHP | XML | ||
|
|
|||
From: Mirco 'meebey' Bauer Date: Fri Jul 25 11:17:58 2003 Subject: cvs: pearbot /modules botcmds.php
meebey Fri Jul 25 13:17:58 2003 EDT
Modified files:
/pearbot/modules botcmds.php
Log:
- fixed types for registerActionhandler.
Index: pearbot/modules/botcmds.php
diff -u pearbot/modules/botcmds.php:1.3 pearbot/modules/botcmds.php:1.4
--- pearbot/modules/botcmds.php:1.3 Fri Jul 25 13:06:30 2003
+++ pearbot/modules/botcmds.php Fri Jul 25 13:17:58 2003
@@ -1,9 +1,9 @@
<?php
/**
- * $Id: botcmds.php,v 1.3 2003/07/25 17:06:30 meebey Exp $
- * $Revision: 1.3 $
+ * $Id: botcmds.php,v 1.4 2003/07/25 17:17:58 meebey Exp $
+ * $Revision: 1.4 $
* $Author: meebey $
- * $Date: 2003/07/25 17:06:30 $
+ * $Date: 2003/07/25 17:17:58 $
*
* Copyright (c) 2003 Nicolas CHAILLAN <nicos@php.net>
*/
@@ -19,13 +19,13 @@
function module_init(&$irc)
{
- $this->actionids[] = $irc->registerActionhandler(SMARTIRC_TYPE_QUERY|SMARTIRC_TYPE_NOTICE, '^!op', $this, 'give_op');
- $this->actionids[] = $irc->registerActionhandler(SMARTIRC_TYPE_QUERY|SMARTIRC_TYPE_NOTICE, '^!deop', $this, 'give_deop');
- $this->actionids[] = $irc->registerActionhandler(SMARTIRC_TYPE_QUERY|SMARTIRC_TYPE_NOTICE, '^!voice', $this, 'give_voice');
- $this->actionids[] = $irc->registerActionhandler(SMARTIRC_TYPE_QUERY|SMARTIRC_TYPE_NOTICE, '^!devoice', $this, 'give_devoice');
- $this->actionids[] = $irc->registerActionhandler(SMARTIRC_TYPE_QUERY|SMARTIRC_TYPE_NOTICE, '^!topic', $this, 'topic');
- $this->actionids[] = $irc->registerActionhandler(SMARTIRC_TYPE_QUERY|SMARTIRC_TYPE_NOTICE, '^!kick', $this, 'kick');
- $this->actionids[] = $irc->registerActionhandler(SMARTIRC_TYPE_QUERY|SMARTIRC_TYPE_NOTICE, '^!invite', $this, 'invite');
+ $this->actionids[] = $irc->registerActionhandler(SMARTIRC_TYPE_CHANNEL, '^!op', $this, 'give_op');
+ $this->actionids[] = $irc->registerActionhandler(SMARTIRC_TYPE_CHANNEL, '^!deop', $this, 'give_deop');
+ $this->actionids[] = $irc->registerActionhandler(SMARTIRC_TYPE_CHANNEL, '^!voice', $this, 'give_voice');
+ $this->actionids[] = $irc->registerActionhandler(SMARTIRC_TYPE_CHANNEL, '^!devoice', $this, 'give_devoice');
+ $this->actionids[] = $irc->registerActionhandler(SMARTIRC_TYPE_CHANNEL, '^!topic', $this, 'topic');
+ $this->actionids[] = $irc->registerActionhandler(SMARTIRC_TYPE_CHANNEL, '^!kick', $this, 'kick');
+ $this->actionids[] = $irc->registerActionhandler(SMARTIRC_TYPE_CHANNEL, '^!invite', $this, 'invite');
}
function module_exit(&$irc)
| Navigate in group php.pear.bot at sever news.php.net | |
| Previous | Next |
| © No Copyright You are free to use Anything |
Site Maintained by Zareef Ahmed
Powered By PHP Consultants |