Skip Menu |

This queue is for tickets about the DJabberd CPAN distribution.

Report information
The Basics
Id: 87306
Status: new
Priority: 0/
Queue: DJabberd

Owner: Nobody in particular
Requestors: rurban [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)


Subject: [PATCH] wrong return precedence
Download (untitled) / with headers
text/plain 133b
returns binds stronger than or, so the expressions after or are ignored. See
Subject: DJabberd-0.85-returnor.patch
diff -bu ./lib/DJabberd/ ./lib/DJabberd/ --- ./lib/DJabberd/ 2011-06-13 17:19:51.000000000 -0500 +++ ./lib/DJabberd/ 2013-07-25 09:21:06.634184660 -0500 @@ -259,7 +259,7 @@ sub to_host { my $self = shift; - return $self->{to_host} or + return $self->{to_host} || die "To host accessed before it was set"; } @@ -270,7 +270,7 @@ sub version { my $self = shift; - return $self->{version} or + return $self->{version} || die "Version accessed before it was set"; }

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to