I want to register nickname and I need to recive ":services. MODE xxxx +e" from irc, the function _mode doesn't check this possibility... There is any way to not modify messagehandler.php?
Thanks in advanced!
F
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
yes there is! or more: yes there should be! :)
what you need is the messagehandler API, the problem is I never tested it and I think it will not work...
The idea of the messagehandler API is to allow developer to extend SmartIRC without changing the core code of it...
you could add a function called "mode" in Net_SmartIRC_Messagehandler (messagehandler.php)
if the API would work then you could define an own messagehandler class that extends the default one of SmartIRC...
an other possibility is to create a actionhandler with the type SMARTIRC_TYPE_UNKNOWN, that will catch _all_ not reconized types, which includes the MODE change, but be careful, check the message before you process it! you may get much messages with that actionhandler type which you don't want ;)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I want to register nickname and I need to recive ":services. MODE xxxx +e" from irc, the function _mode doesn't check this possibility... There is any way to not modify messagehandler.php?
Thanks in advanced!
F
yes there is! or more: yes there should be! :)
what you need is the messagehandler API, the problem is I never tested it and I think it will not work...
The idea of the messagehandler API is to allow developer to extend SmartIRC without changing the core code of it...
you could add a function called "mode" in Net_SmartIRC_Messagehandler (messagehandler.php)
if the API would work then you could define an own messagehandler class that extends the default one of SmartIRC...
an other possibility is to create a actionhandler with the type SMARTIRC_TYPE_UNKNOWN, that will catch _all_ not reconized types, which includes the MODE change, but be careful, check the message before you process it! you may get much messages with that actionhandler type which you don't want ;)