changeset 714:4bcd48f6ca5f

Display group name in the chat status line
author Mikael Berthe <mikael@lilotux.net>
date Sat, 04 Mar 2006 22:01:42 +0100
parents b5aa7b7afee8
children be9f6224c3ca
files mcabber/src/screen.c
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/src/screen.c	Sat Mar 04 18:55:54 2006 +0100
+++ b/mcabber/src/screen.c	Sat Mar 04 22:01:42 2006 +0100
@@ -726,6 +726,7 @@
     char status;
     char *buf;
 
+    fullname = buddy_getname(BUDDATA(current_buddy));
     btype = buddy_gettype(BUDDATA(current_buddy));
 
     isgrp = btype & ROSTER_TYPE_GROUP;
@@ -734,7 +735,10 @@
     // Clear the line
     werase(chatstatusWnd);
 
-    if (isgrp) return;
+    if (isgrp) {
+      mvwprintw(chatstatusWnd, 0, 5, "Group: %s", fullname);
+      return;
+    }
 
     status = '?';
 
@@ -750,8 +754,6 @@
         status = imstatus2char[budstate];
     }
 
-    fullname = buddy_getname(BUDDATA(current_buddy));
-
     // No status message for groups & MUC rooms
     if (!isgrp && !ismuc) {
       GSList *resources = buddy_getresources(BUDDATA(current_buddy));