From: Michael Stapelberg Date: Mon, 22 Mar 2010 20:37:33 +0000 (+0100) Subject: Bugfix: Handle message_type == 0 X-Git-Tag: 4.14~14^2~46 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8b2db9a238ae2c37968646af74ca97b1f2fb8d82;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) {