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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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.........!! :)
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!