From: IsaacG Date: Tue, 19 Oct 2010 17:09:07 +0000 (-0400) Subject: Added a check to ack_spoke to check for non-existance of a window_item/window X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=c9e31f9b0b52e92d0c08c906cebaa19e2c935cf8;p=irssi-scripts.irssi.org.git Added a check to ack_spoke to check for non-existance of a window_item/window --- diff --git a/scripts/ack.pl b/scripts/ack.pl index 5187394..f6d8747 100644 --- a/scripts/ack.pl +++ b/scripts/ack.pl @@ -105,6 +105,11 @@ sub cmd_own_public sub cmd_ack_spoke { my ($data, $server, $witem) = @_; + unless ($witem and $witem->window()) + { + Irssi::print("No window here to operate on :("); + return; + } my $refnum = $witem->window()->{'refnum'}; $last_spoke{$refnum} = time; }