diff options
Diffstat (limited to 'lib/ASM/Commander.pm')
| -rw-r--r-- | lib/ASM/Commander.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/ASM/Commander.pm b/lib/ASM/Commander.pm index aa79f4d..d864800 100644 --- a/lib/ASM/Commander.pm +++ b/lib/ASM/Commander.pm @@ -23,7 +23,10 @@ sub command my $cmd = $args; my $d1; my $nick = lc $event->{nick}; - my $acct = lc $::sn{$nick}->{account}; + my $acct; + if (defined($::sn{$nick}) && defined($::sn{$nick}->{account})) { + $acct = lc $::sn{$nick}->{account}; + } # return 0 unless (ASM::Util->speak($event->{to}->[0])); foreach my $command ( @{$::commands->{command}} ) { |
