[PATCH] Re: Using DJabberd as a platform for external components

Martin Atkins mart at degeneration.co.uk
Sat Jan 6 21:46:25 UTC 2007

Pedro Melo wrote:
> This does not work. When the first </Plugin> is reached, the 
> DJ::D::ComponentConnection is added to the VHost using the add_plugin() 
> method.
> This will call $plugin->register(), and this will trigger a new connection.
> The problem is that the DJ::Conn::ComponentOut requires the 
> $vhost->server, but that is still undef at this time. Vhosts only get 
> the server object at the </Vhost> when we call $server->add_vhost().
> So we get a croak at line 64 of Connection.pm.

It appears that I missed my changes to DJabberd.pm when I was 
committing. (I guess I accidentally committed in the DJabberd/ 

I've just committed my already-modified copy of DJabberd.pm here, which 
achieves the same thing as your patch does but by calling set_server on 
the vhost right after it's created rather than waiting until it's closed.

Sorry about that.

More information about the Djabberd mailing list