comparison mcabber/src/hooks.c @ 646:a8cb28ca5ff4

MUC: Server messages are prefixed with "~ " instead of "<> "
author Mikael Berthe <mikael@lilotux.net>
date Thu, 05 Jan 2006 22:23:41 +0100
parents 028c01940490
children 16cd6c858a5d
comparison
equal deleted inserted replaced
645:d26a1c9611db 646:a8cb28ca5ff4
50 is_groupchat = TRUE; 50 is_groupchat = TRUE;
51 log_muc_conf = settings_opt_get_int("log_muc_conf"); 51 log_muc_conf = settings_opt_get_int("log_muc_conf");
52 if (!resname) { 52 if (!resname) {
53 message_flags = HBB_PREFIX_INFO; 53 message_flags = HBB_PREFIX_INFO;
54 resname = ""; 54 resname = "";
55 } 55 bmsg = g_strdup_printf("~ %s", msg);
56 wmsg = bmsg = g_strdup_printf("<%s> %s", resname, msg); 56 } else {
57 bmsg = g_strdup_printf("<%s> %s", resname, msg);
58 }
59 wmsg = bmsg;
57 if (!strncmp(msg, "/me ", 4)) 60 if (!strncmp(msg, "/me ", 4))
58 wmsg = mmsg = g_strdup_printf("*%s %s", resname, msg+4); 61 wmsg = mmsg = g_strdup_printf("*%s %s", resname, msg+4);
59 } else { 62 } else {
60 if (!strncmp(msg, "/me ", 4)) 63 if (!strncmp(msg, "/me ", 4))
61 wmsg = mmsg = g_strdup_printf("*%s %s", jid, msg+4); 64 wmsg = mmsg = g_strdup_printf("*%s %s", jid, msg+4);