Github and my patches so far

Bron Gondwana brong at
Tue Jul 29 05:32:00 UTC 2008


I found nick-djabberd on github with a complete copy of
the djabberd svn already gittified, and figured I should
maybe learn some git while playing with it.

I've forked it as
(github didn't seem to let me rename my fork)

I've pushed my changes back to there.  I'll past the log
entries below.

DJabberd devs - feel free to grab anything from in there and
apply it back upstream in SVN, or even ask me to rewrite it
first... cod review gratefully received.  I'm still learning
my way around both DJabberd and the whole "Danga::Socket"

I'll post my "Ping" handler separately, just for fun - though
I see there's already one in CPAN.



commit 683ae91ec92ec075ae634e0574ed0289cdb62e56
Author: Bron Gondwana <brong at>
Date:   Tue Jul 29 10:22:37 2008 +1000

    Allow XMLDEBUG not to finish with a /

    This fix has already been posted to the mailing list, but
    I wanted it here too.

commit b324c671f5e847d2fdd1dc22efd15ed7b4ad2297
Author: Bron Gondwana <brong at>
Date:   Tue Jul 29 10:21:01 2008 +1000

    Fix <undef>-$n to outbound-$n in XMLDEBUG

    $fromip was being tested for undef to be replaced by "outbound",
    but above being set to '<undef>' explicitly.

commit 5c881254854b52ef0ef15c1a3152042ffb5a7d4b
Author: Bron Gondwana <brong at>
Date:   Tue Jul 29 10:14:54 2008 +1000

    Allow subclassing of DJabberd main object

    Rather than checking for a precise "ref" on the Server object,
    check "isa".

commit 287177663a32b1839829189892b408a59745ec81
Author: Bron Gondwana <brong at>
Date:   Tue Jul 29 10:13:04 2008 +1000

    Fix spelling of dialback

commit 23bc142df47fdcd42d3e0fd69d5f65a4cfcc039e
Author: Bron Gondwana <brong at>
Date:   Mon Jul 21 16:32:50 2008 +1000

    Support '*' as a server_name, which soaks up all domains
    and doesn't allow any s2s or external communication, but
    assumes all domains are local.

    This will probably be best used with a MyVHost subclass
    which overrides at least handles_domain, handles_jid and
    possibly uses_jid as well - allowing multiple local
    domains but still supporting s2s.

commit 34106b58891224894e3c90678780d2d58d0fc802
Author: Bron Gondwana <brong at>
Date:   Mon Jul 21 16:13:05 2008 +1000

    Add to_host method to allow Authentication method to know the
    explicit domain used in the stream start.

    Add authjid return from authentication callback to rewrite the
    jid from the given login details
  Bron Gondwana
  brong at

More information about the Djabberd mailing list