comparison mcabber/src/screen.c @ 1115:922a9ae1a17e

Fix /say_to to a member of a folded group Issue reported by Salvador.
author Mikael Berthe <mikael@lilotux.net>
date Thu, 28 Dec 2006 15:00:59 +0100
parents 6ca9a65df21f
children 648fe6f715a6
comparison
equal deleted inserted replaced
1114:2ba26f6c060f 1115:922a9ae1a17e
1370 if (!(prefix & 1370 if (!(prefix &
1371 ~HBB_PREFIX_NOFLAG & ~HBB_PREFIX_HLIGHT & ~HBB_PREFIX_PGPCRYPT)) 1371 ~HBB_PREFIX_NOFLAG & ~HBB_PREFIX_HLIGHT & ~HBB_PREFIX_PGPCRYPT))
1372 prefix |= HBB_PREFIX_IN; 1372 prefix |= HBB_PREFIX_IN;
1373 1373
1374 scr_WriteMessage(jidfrom, text, timestamp, prefix); 1374 scr_WriteMessage(jidfrom, text, timestamp, prefix);
1375 update_panels();
1376 } 1375 }
1377 1376
1378 void scr_WriteOutgoingMessage(const char *jidto, const char *text, guint prefix) 1377 void scr_WriteOutgoingMessage(const char *jidto, const char *text, guint prefix)
1379 { 1378 {
1379 GSList *roster_elt;
1380 roster_elt = roster_find(jidto, jidsearch,
1381 ROSTER_TYPE_USER|ROSTER_TYPE_AGENT|ROSTER_TYPE_ROOM);
1382
1380 scr_WriteMessage(jidto, text, 0, prefix|HBB_PREFIX_OUT|HBB_PREFIX_HLIGHT); 1383 scr_WriteMessage(jidto, text, 0, prefix|HBB_PREFIX_OUT|HBB_PREFIX_HLIGHT);
1381 scr_ShowWindow(jidto, FALSE); 1384
1385 // Show jidto's buffer unless the buddy is not in the buddylist
1386 if (roster_elt && g_list_position(buddylist, roster_elt->data) != -1)
1387 scr_ShowWindow(jidto, FALSE);
1382 } 1388 }
1383 1389
1384 static inline void set_autoaway(bool setaway) 1390 static inline void set_autoaway(bool setaway)
1385 { 1391 {
1386 static enum imstatus oldstatus; 1392 static enum imstatus oldstatus;