From: Michael Stapelberg Date: Mon, 22 Mar 2010 20:37:33 +0000 (+0100) Subject: Bugfix: Handle message_type == 0 X-Git-Tag: AnyEvent-0.02~11 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=61933d0a5878b9a83308b65f8a531a400e1d2df2;p=i3%2Fi3 Bugfix: Handle message_type == 0 --- 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) {