Hi all,<br><br>I've been browsing the list archives, and I can't work out how to get MUC working - and examples in the wild are non-existent.<br><br>I've been playing with the six apart example from the repo, and just about understand the user, roster and vcard setup, but I'm having trouble with the chatroom setup. Since there's no clear examples on this, I've been trying semi random constructors for DJabberd::Plugin::MUC::Room without really knowing what I'm doing here.
<br><br>What I want to do is create a few permanent rooms at startup with the following criteria:<br><br>- disco doesn't need to work<br>- users need to be able to join the rooms without invitation<br>- users can invite others
<br><br>I have a feeling I'm running around the right code without quite getting it. Here's where I'm at (snippet):<br><br>--<br><br>my $rs = DJabberd::RosterStorage::Dummy->new;<br>$rs->finalize;<br><br>
my $vcard = DJabberd::Plugin::VCard::SQLite->new;<br>$vcard->set_config_storage("$Bin/roster.sqlite");<br>$vcard->finalize;<br><br>my $muc = DJabberd::Plugin::MUC->new;<br>$muc->set_config_subdomain("conference");
<br>$muc->finalize;<br><br><br>my $vhost = DJabberd::VHost->new(<br> server_name => '<a href="http://test-domain.com">test-domain.com</a>',<br> require_ssl => 0,<br> s2s => 1,
<br> plugins => [<br> DJabberd::Authen::Dummy->new,<br> $rs,<br> $vcard,<br> $muc,<br> DJabberd::Delivery::Local->new,
<br> DJabberd::Delivery::S2S->new,<br> ],<br> );<br><br># I'm sure this is wrong, but this was my last stab<br>my $room = DJabberd::Plugin::MUC::Room->new( 'testroom', '
<a href="http://test-domain.com">test-domain.com</a>', $vhost );<br><br>my $server = DJabberd->new(<br> daemonize => $daemonize,<br> );<br><br>$server->add_vhost($vhost);<br>$server->run;
<br><br>--<br><br>Can someone point me in the right direction? I'm learning quite a bit from this code (thanks all :) but I think my OO has enough gaps in it right now to make this harder than I feel it should be.<br>
<br>Should I be attempting to use the DJabberd modules for this? Or should I be using an external component? (and if so, which?). The last solid thread on MUC that I found was:<br><br><a href="http://lists.danga.com/pipermail/djabberd/2006-October/000185.html">
http://lists.danga.com/pipermail/djabberd/2006-October/000185.html</a><br><br>and that's not exactly encouraging :) Have things changed since then?<br><br>Any input appreciated.<br><br>cLive ;-)<br>