[ejabberd] Limiting message flood on joining a chatroom
mickael.remond at process-one.net
Thu Mar 3 11:33:51 MSK 2011
Use the limit history maxstanza features from XEP-0045 in presence join packets:
Le 2 mars 2011 à 22:58, Srirang Doddihal a écrit :
> I recently installed ejabberd (for the first time) on Ubuntu 10.04 and
> set it up as a simple chat server. It's working mostly fine except for
> one issue related to multi-user chatrooms.
> When a user joins a chatroom, a flood of messages previously sent by
> other users in the chatroom are being sent. As a result the user is
> bombarded with a huge list at join time. How can I limit the number of
> previous messages that a user can get on joining a room? I would
> ideally want it to me something like 10 messages. I have not been able
> to find any configuration element controlling this. The regular MUC
> chat and one-to-one chat between users is working absolutely fine.
> Only this initial flood needs to be controlled.
> Any help in configuring this appropriately is greatly appreciated.
> Here is my setup :
> I am using the strophe.js library to talk to ejabberd server from my
> web front-end (via http-bind). There is an nginx web server sitting
> between the client and ejabberd which just proxies the requests.
> P.S : I am new to XMPP and ejabberd.
> Srirang G Doddihal
> The LIGHT shows the way.
> The WISE see it.
> The BRAVE walk it.
> The PERSISTENT endure and complete it.
> I want to do it all ALONE.
> ejabberd mailing list
> ejabberd at jabber.ru
More information about the ejabberd