comparison mcabber/src/screen.c @ 832:7c210263c661

Small scr_DrawRoster() fix When we know the presence status of a user without being subscribed to their presence updates, we can display it instead of '?'.
author Mikael Berthe <mikael@lilotux.net>
date Thu, 04 May 2006 10:44:55 +0200
parents 319fc55b9a2b
children 63707a595c2e
comparison
equal deleted inserted replaced
831:dd865cc57aa2 832:7c210263c661
1056 } else { 1056 } else {
1057 char sepleft = '['; 1057 char sepleft = '[';
1058 char sepright = ']'; 1058 char sepright = ']';
1059 if (btype & ROSTER_TYPE_USER) { 1059 if (btype & ROSTER_TYPE_USER) {
1060 guint subtype = buddy_getsubscription(BUDDATA(buddy)); 1060 guint subtype = buddy_getsubscription(BUDDATA(buddy));
1061 if (!(subtype & sub_to)) 1061 if (status == '_' && !(subtype & sub_to))
1062 status = '?'; 1062 status = '?';
1063 if (!(subtype & sub_from)) { 1063 if (!(subtype & sub_from)) {
1064 sepleft = '{'; 1064 sepleft = '{';
1065 sepright = '}'; 1065 sepright = '}';
1066 } 1066 }