From aa1094eb3397b0b94e7cbd9261256948c3611b4c Mon Sep 17 00:00:00 2001 From: William Heimbigner Date: Thu, 7 Jan 2016 20:10:14 -0700 Subject: Fix a line in commands.xml that potentially caused state corruption when using ;mship with a non-existent nick --- config-default/commands.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config-default') 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 @@ {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 { -- cgit v1.2.3