]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Handle message_type == 0
authorMichael Stapelberg <michael@stapelberg.de>
Mon, 22 Mar 2010 20:37:33 +0000 (21:37 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 19 Aug 2017 16:13:19 +0000 (18:13 +0200)
lib/AnyEvent/I3.pm

index 9c8cbbdc00016f9ab6c9c5f681ff3ea770e7d4ac..7296a9c591ac07576a6ae384bdce2d286310f78f 100644 (file)
@@ -196,7 +196,7 @@ structure C<payload>, 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) {