Bugfix: Handle message_type == 0
This commit is contained in:
parent
e3f0e5b01c
commit
8b2db9a238
|
@ -196,7 +196,7 @@ structure C<payload>, if specified.
|
||||||
sub message {
|
sub message {
|
||||||
my ($self, $type, $content) = @_;
|
my ($self, $type, $content) = @_;
|
||||||
|
|
||||||
die "No message type specified" unless $type;
|
die "No message type specified" unless defined($type);
|
||||||
|
|
||||||
my $payload = "";
|
my $payload = "";
|
||||||
if ($content) {
|
if ($content) {
|
||||||
|
|
Loading…
Reference in New Issue