Skip to content

About

Ejabberd: Specific MUC logic for Boorchat

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Customised MUC IQ's for Boorchat

Description

This module replaces response for standard request of room discovery IQ ( https://xmpp.org/extensions/xep-0045.html#disco-rooms ):

<iq from='[email protected]/pda'
    id='zb8q41f4'
    to='chat.shakespeare.lit'
    type='get'>
  <query xmlns='http://jabber.org/protocol/disco#items'/>
</iq>

Response includes counter of members and online users. Also it includes affiliation status and role of current user for this room.

Example of response:

<iq from='chat.shakespeare.lit'
    id='zb8q41f4'
    to='[email protected]/pda'
    type='result'>
  <query xmlns='http://jabber.org/protocol/disco#items'>
    <item jid="[email protected]" name="укенг (0)">
        <members total="0" online="0"/>
        <role value="none"/>
        <affiliation value="none"/>
    </item>
    <item jid="[email protected]" name="test (1)">
        <members total="1" online="1"/>
        <role value="moderator"/>
        <affiliation value="owner"/>
    </item>
    ....
    <item jid='[email protected]'
          name='A Dark Cave'>
        ....
    </item>
  </query>
</iq>

Ejabberd 20

Installation Ejabberd from sources

Installation dependencies

apt install gcc libssl-dev libexpat1-dev libyaml-dev g++ zlib1g-dev

Author

Sergey Loguntsov mailto: [loguntsov][gmail.com]

License

MIT

About

Ejabberd: Specific MUC logic for Boorchat

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages