diff options
| author | 2016-01-07 20:10:14 -0700 | |
|---|---|---|
| committer | 2016-01-07 20:10:14 -0700 | |
| commit | aa1094eb3397b0b94e7cbd9261256948c3611b4c (patch) | |
| tree | 2e6a7ba09e33becbbd20871198a9b6896c3d2863 /config-default | |
| parent | 645cc36c05909b0ffd0ec9423e3633c8a1b8673b (diff) | |
Fix a line in commands.xml that potentially caused state corruption when using ;mship with a non-existent nick
Diffstat (limited to 'config-default')
| -rw-r--r-- | config-default/commands.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config-default/commands.xml b/config-default/commands.xml index 8c81588..68ec222 100644 --- a/config-default/commands.xml +++ b/config-default/commands.xml @@ -105,7 +105,7 @@ <command cmd="^;mship (\S+)" flag="s"> <![CDATA[ my $nick = $1; - if (defined($::sn{lc $nick}->{mship})) { + if (defined($::sn{lc $nick})) { if ($event->{to}->[0] =~ /^#/) { $conn->privmsg($event->replyto, $nick . " is on: " . ASM::Util->commaAndify(sort(grep { not grep { /^s$/ } @{$::sc{$_}{modes}} } @{$::sn{lc $nick}->{mship}}))); } else { |
