Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/hooks.c @ 734:1d9f0efcfcee
MUC: Do not mark error messages as private
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Thu, 09 Mar 2006 19:40:00 +0100 |
parents | 39f67cade02c |
children | 2f027806cd48 |
comparison
equal
deleted
inserted
replaced
733:c502bfe67c31 | 734:1d9f0efcfcee |
---|---|
85 is_room = !!(buddy_gettype(roster_usr->data) & ROSTER_TYPE_ROOM); | 85 is_room = !!(buddy_gettype(roster_usr->data) & ROSTER_TYPE_ROOM); |
86 | 86 |
87 if (is_room) { | 87 if (is_room) { |
88 if (!is_groupchat) { | 88 if (!is_groupchat) { |
89 // This is a private message from a room participant | 89 // This is a private message from a room participant |
90 if (!resname) | 90 if (!resname) { |
91 resname = ""; | 91 resname = ""; |
92 wmsg = bmsg = g_strdup_printf("PRIV#<%s> %s", resname, msg); | 92 wmsg = bmsg = g_strdup(msg); |
93 if (!strncmp(msg, "/me ", 4)) | 93 } else { |
94 wmsg = mmsg = g_strdup_printf("PRIV#*%s %s", resname, msg+4); | 94 wmsg = bmsg = g_strdup_printf("PRIV#<%s> %s", resname, msg); |
95 if (!strncmp(msg, "/me ", 4)) | |
96 wmsg = mmsg = g_strdup_printf("PRIV#*%s %s", resname, msg+4); | |
97 } | |
95 /*message_flags |= HBB_PREFIX_HLIGHT;*/ | 98 /*message_flags |= HBB_PREFIX_HLIGHT;*/ |
96 } else { | 99 } else { |
97 // This is a regular chatroom message. | 100 // This is a regular chatroom message. |
98 // Let's see if we are the message sender, in which case we'll | 101 // Let's see if we are the message sender, in which case we'll |
99 // highlight it. | 102 // highlight it. |