mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-26 10:16:20 +00:00
wip - Store roles and affiliations with occupants
This commit is contained in:
@@ -527,11 +527,10 @@ handle_room_roster_complete(const char * const room)
|
||||
}
|
||||
|
||||
void
|
||||
handle_room_member_presence(const char * const room,
|
||||
const char * const nick, const char * const show,
|
||||
const char * const status)
|
||||
handle_room_member_presence(const char * const room, const char * const nick, const char * const role,
|
||||
const char * const affiliation, const char * const show, const char * const status)
|
||||
{
|
||||
gboolean updated = muc_roster_add(room, nick, show, status);
|
||||
gboolean updated = muc_roster_add(room, nick, role, affiliation, show, status);
|
||||
|
||||
if (updated) {
|
||||
char *muc_status_pref = prefs_get_string(PREF_STATUSES_MUC);
|
||||
@@ -543,10 +542,10 @@ handle_room_member_presence(const char * const room,
|
||||
}
|
||||
|
||||
void
|
||||
handle_room_member_online(const char * const room, const char * const nick,
|
||||
const char * const show, const char * const status)
|
||||
handle_room_member_online(const char * const room, const char * const nick, const char * const role,
|
||||
const char * const affiliation, const char * const show, const char * const status)
|
||||
{
|
||||
muc_roster_add(room, nick, show, status);
|
||||
muc_roster_add(room, nick, role, affiliation, show, status);
|
||||
|
||||
char *muc_status_pref = prefs_get_string(PREF_STATUSES_MUC);
|
||||
if (g_strcmp0(muc_status_pref, "none") != 0) {
|
||||
|
||||
Reference in New Issue
Block a user