Menu

read from a global notice

Help
2005-01-01
2013-04-09
  • Nobody/Anonymous

    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

     
    • Mirco Bauer

      Mirco Bauer - 2005-01-01

      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.

       
      • Nobody/Anonymous

        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

         
        • Mirco Bauer

          Mirco Bauer - 2005-01-01

          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...

           
    • Mirco Bauer

      Mirco Bauer - 2005-01-01

      btw there is a #smartirc channel on freenode (irc.freenode.net)

       

Log in to post a comment.