Bugfix: Handle message_type == 0

next
Michael Stapelberg 2010-03-22 21:37:33 +01:00
parent e3f0e5b01c
commit 8b2db9a238
1 changed files with 1 additions and 1 deletions

View 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) {