From aea22cd1e0e955848c143a8fc36978391e9a4846 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 3 Oct 2011 17:48:01 +0200 Subject: otr: only skip coloring of leading /me if the message will go to a query window --- otr.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'otr.c') diff --git a/otr.c b/otr.c index bb6f8b07..5b36a228 100644 --- a/otr.c +++ b/otr.c @@ -413,14 +413,15 @@ char *otr_filter_msg_in(irc_user_t *iu, char *msg, int flags) else color=5; /* red */ - /* keep "/me " uncolored at the beginning */ - if (g_strncasecmp(msg, "/me ", 4) == 0) { + /* in a query window, keep "/me " uncolored at the beginning */ + if(g_strncasecmp(msg, "/me ", 4) == 0 + && irc_user_msgdest(iu) == irc->user->nick) { msg += 4; /* skip */ pre = "/me "; } /* comma in first place could mess with the color code */ - if (msg[0] == ',') { + if(msg[0] == ',') { /* insert a space between color spec and message */ sep = " "; } -- cgit v1.2.3