From 8b2db9a238ae2c37968646af74ca97b1f2fb8d82 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) {