cvs: pearbot /modules botcmds.php

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