hi,
whats the action handler to read from a Global notice, because when i put $irc->registerActionhandler(SMARTIRC_TYPE_NOTICE, $admincheck, $djbot, 'admin_check');
it wouldnt do the function because of this :
$irc->message(SMARTIRC_TYPE_QUERY, 'Authserv@services.isogames.com', 'userinfo '.$data->nick);
its replied as a global notice...
any help would be appreciated
and Smartirc is a very nice, and effiecient product
2 Thumbs up
Moe
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
My question, was kind of easy, its just a normal type_notice, but however this is what is happening that is confusing me:
The actionhandler is registered and the trigger is @admincheck, at the time its registered @admincheck = 'null'. Howerver @admincheck changes to for example me but the trigger is only hit if it type null. And this is the action is does
function admin_check(&$irc, &$data) {
global $admincheck;
$irc->message(SMARTIRC_TYPE_CHANNEL, '#radio-staff', $admincheck);
}
and the message its say me, probably the action handler is not being updated, after @admincheck is changed. And is it possible to register an action handler in a function of the bots class?
Thank alot Meeby for everything
Moe
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
you want to register an actionhandler when something inside another actionhandler happens? sure thats possible, just do it as it would be in the main script with $irc->registerActionhandler() and so on... though you need to pass $this as object instead of $mybot or whatever...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi,
whats the action handler to read from a Global notice, because when i put $irc->registerActionhandler(SMARTIRC_TYPE_NOTICE, $admincheck, $djbot, 'admin_check');
it wouldnt do the function because of this :
$irc->message(SMARTIRC_TYPE_QUERY, 'Authserv@services.isogames.com', 'userinfo '.$data->nick);
its replied as a global notice...
any help would be appreciated
and Smartirc is a very nice, and effiecient product
2 Thumbs up
Moe
I am not sure what type that "global notice" is, best would be if you paste your debug log file when your user is authed, then I can tell.
My question, was kind of easy, its just a normal type_notice, but however this is what is happening that is confusing me:
The actionhandler is registered and the trigger is @admincheck, at the time its registered @admincheck = 'null'. Howerver @admincheck changes to for example me but the trigger is only hit if it type null. And this is the action is does
function admin_check(&$irc, &$data) {
global $admincheck;
$irc->message(SMARTIRC_TYPE_CHANNEL, '#radio-staff', $admincheck);
}
and the message its say me, probably the action handler is not being updated, after @admincheck is changed. And is it possible to register an action handler in a function of the bots class?
Thank alot Meeby for everything
Moe
you want to register an actionhandler when something inside another actionhandler happens? sure thats possible, just do it as it would be in the main script with $irc->registerActionhandler() and so on... though you need to pass $this as object instead of $mybot or whatever...
btw there is a #smartirc channel on freenode (irc.freenode.net)