comparison mcabber/mcabber/xmpp_muc.c @ 2125:fef71336e429

shorten 'status change' message in MUC
author sh!zeeg <shizeeque@gmail.com>
date Wed, 14 May 2014 14:20:44 +0400
parents af7e705380b2
children 36170c97a0b7
comparison
equal deleted inserted replaced
2124:af7e705380b2 2125:fef71336e429
713 // This is a simple member status change 713 // This is a simple member status change
714 714
715 if (printstatus == status_all && !nickchange) { 715 if (printstatus == status_all && !nickchange) {
716 const char *old_ustmsg = buddy_getstatusmsg(room_elt->data, rname); 716 const char *old_ustmsg = buddy_getstatusmsg(room_elt->data, rname);
717 if (old_ust != ust || g_strcmp0(old_ustmsg, ustmsg)) { 717 if (old_ust != ust || g_strcmp0(old_ustmsg, ustmsg)) {
718 mbuf = g_strdup_printf("Member status has changed: %s [%c] %s", rname, 718 mbuf = g_strdup_printf("%s [%c>%c] %s", rname, imstatus2char[old_ust],
719 imstatus2char[ust], ((ustmsg) ? ustmsg : "")); 719 imstatus2char[ust], ((ustmsg) ? ustmsg : ""));
720 scr_WriteIncomingMessage(roomjid, mbuf, usttime, 720 scr_WriteIncomingMessage(roomjid, mbuf, usttime,
721 HBB_PREFIX_INFO|HBB_PREFIX_NOFLAG, 0); 721 HBB_PREFIX_INFO|HBB_PREFIX_NOFLAG, 0);
722 g_free(mbuf); 722 g_free(mbuf);
723 } 723 }