From 61933d0a5878b9a83308b65f8a531a400e1d2df2 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 22 Mar 2010 21:37:33 +0100 Subject: [PATCH] Bugfix: Handle message_type == 0 --- lib/AnyEvent/I3.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/AnyEvent/I3.pm b/lib/AnyEvent/I3.pm index 9c8cbbdc..7296a9c5 100644 --- a/lib/AnyEvent/I3.pm +++ b/lib/AnyEvent/I3.pm @@ -196,7 +196,7 @@ structure C, if specified. sub message { my ($self, $type, $content) = @_; - die "No message type specified" unless $type; + die "No message type specified" unless defined($type); my $payload = ""; if ($content) { -- 2.39.5