]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
Added a check to ack_spoke to check for non-existance of a window_item/window
authorIsaacG <redacted>
Tue, 19 Oct 2010 17:09:07 +0000 (13:09 -0400)
committerbw1 <redacted>
Mon, 8 Jan 2018 17:18:10 +0000 (18:18 +0100)
scripts/ack.pl

index 518739485839aab724d7c8b92fda954c6df28b57..f6d8747d8b2e484ded5f4f9592fb960ae9aeb6e5 100644 (file)
@@ -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;
 }
git clone https://git.99rst.org/PROJECT