amsg (message to all channels bot is on)

Back to PHP-IRC Feature Requests

Page: 1  
From User Message Body
Mad_Clog
Post #337
user avatar
Member
Date: 1:34 pm, Sep 27 2006
Posts: 176


Couldnt find this in the command reference so i made my own.
Might be usefull to implement in the next version?

Code
    public function amsg($msg, $queue = 1)
    {
        $channels = implode(',',array_keys($this->getChannelData()));
        $this->privMsg($channels, $msg, $queue);        
    }


For anyone wanting to use this in the current version, just add it into the irc class in irc.php and restart the bot

Manick
Post #338
user avatar
Admin
Date: 3:04 pm, Sep 27 2006
Posts: 223


Cool. Thanks.

--Manick
PHP-IRC Developer
jcrawford
Post #340
Member
Date: 11:08 pm, Sep 29 2006
Posts: 11


i think things like this would be better as a module rather than in the core but... who am i to decide that :D

Xikeon
Post #364
Member
Date: 3:34 pm, Oct 24 2006
Posts: 5


If it's in the core you can use it in all modules, so not everyone has to add it to their module. :)

>>>>> Awesomeness Signature <<<<<
irc.rizon.net ~ #botworld
   

Back to PHP-IRC Feature Requests