Menu

Tired of bug! $event->args(); $event->nick;

Help
2003-02-28
2003-02-28
  • Alice Beabee

    Alice Beabee - 2003-02-28

    Danm. I am tired!
    $event->args();
    $event->nick;
    works perfect when nick  written as a admin/user config.xml of perlbot.
    What is it? WHy that? What to use to Identifie the user who just sais the command and not in list? I don't want $self->reply because I want to notice him
    by a command $self->perlbot->notice($user->curnick, $self->{linez}[1]);
    I cannot notice notice other way, Can I? What a mess!
    Errors I get I don't see when I am typing the cmds under reg admin in perlbot:

    Died with: Can't call method "args" on an undefined value at Plugins/Misc/csinfo/csinfo.pm line 37.     

      Perlbot::__ANON__('Can\'t call method "args" on an undefined value at Plugins/Misc/...') c

    Perlbot::__ANON__('Can\'t call method "curnick" on an undefined value at Plugins/Us...') called at Plugi

    Is that really a bug? Don't understand.

     
    • Alice Beabee

      Alice Beabee - 2003-02-28

      Afrer another 3 hours of test I realised that in hook_event i can get $event variables.. but in simple hooks - why i cannot get them there?

      Anyone knows? Whattaaaa.........!! :)

       
      • Alice Beabee

        Alice Beabee - 2003-02-28

        Ughh finally found myself!

          my $self = shift;
          my $user = shift;
          my $text = shift;
          my $event = shift;

          my $nick = $event->nick();

        in $nick you will have the nick ot the guy who said !start or smth like this!

        cheers!

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.