diff mcabber/src/screen.c @ 447:03bb57383cea

Initial Multi-User Chat support This patch adds basic MUC support. We now can: - join an existing room; - create and unlock a room using the /rawxml command; - set our nickname; - send/receive chatgroup messages; - see the members of the room; - leave the room. Chatroom logging is currently disabled, as it could do some unexpected things.
author Mikael Berthe <mikael@lilotux.net>
date Sun, 25 Sep 2005 01:01:44 +0200
parents 7bf6c0c6a714
children 8827bbef84a1
line wrap: on
line diff
--- a/mcabber/src/screen.c	Sun Sep 25 00:44:11 2005 +0200
+++ b/mcabber/src/screen.c	Sun Sep 25 01:01:44 2005 +0200
@@ -720,6 +720,7 @@
     enum imstatus budstate;
     unsigned short ismsg = buddy_getflags(BUDDATA(buddy)) & ROSTER_FLAG_MSG;
     unsigned short isgrp = buddy_gettype(BUDDATA(buddy)) & ROSTER_TYPE_GROUP;
+    unsigned short ismuc = buddy_gettype(BUDDATA(buddy)) & ROSTER_TYPE_ROOM;
     unsigned short ishid = buddy_getflags(BUDDATA(buddy)) & ROSTER_FLAG_HIDE;
 
     if (rOffset > 0) {
@@ -749,6 +750,8 @@
         wattrset(rosterWnd, COLOR_PAIR(COLOR_BD_DES));
     }
 
+    if (ismuc) status = 'C';
+
     strncpy(name, buddy_getname(BUDDATA(buddy)), ROSTER_WIDTH-7);
     if (isgrp) {
       char *sep;