[ejabberd] Create multi user chat room programmatically

Henk Van Der Veen henk at wgrids.com
Mon May 16 11:43:09 MSD 2011


try mod_muc:create_room("localhost", "testroom",
jlib:string_to_jid("testuser at localhost"), "testuser", [{persistent, true}]).

I'm not entirely sure if persistent is necessary, maybe the room is only
deleted when the last user leaves the room, not when the room has always
been empty.


On Mon, May 16, 2011 at 8:33 AM, Alexander Kuleshov
<kuleshovmail at gmail.com>wrote:

> Hello,
> I need to create multi user chat room from my module. I try to use
> mod_muc:create/5 -
> mod_muc:create_room("conference.localhost", "testroom",
> "testuser at localhost", "testuser", default).
> But when i run client and login, nothing happens. The room doesn't create.
> How can i correctly create muc room from my module code? And where i
> can find in ejabberd mod_muc source code where create_room/5 executes?
> Thank you.
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20110516/16b74e4d/attachment.html>

More information about the ejabberd mailing list