From 217283caeaf5fc19e671a56547610ceb42e2ea7b Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 20 Jan 2004 10:57:57 +0000 Subject: isupport patch by David Leadbeater git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3211 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/fe-messages.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/fe-common/core/fe-messages.c') diff --git a/src/fe-common/core/fe-messages.c b/src/fe-common/core/fe-messages.c index 2ae6c0e1..f0015f20 100644 --- a/src/fe-common/core/fe-messages.c +++ b/src/fe-common/core/fe-messages.c @@ -116,12 +116,19 @@ char *expand_emphasis(WI_ITEM_REC *item, const char *text) static char *channel_get_nickmode_rec(NICK_REC *nickrec) { char *emptystr; + static char nickmode[2]; /* FIXME: bad */ if (!settings_get_bool("show_nickmode")) return ""; emptystr = settings_get_bool("show_nickmode_empty") ? " " : ""; + if (nickrec != NULL && nickrec->other) { + nickmode[0] = nickrec->other; + nickmode[1] = '\0'; + return nickmode; + } + return nickrec == NULL ? emptystr : nickrec->op ? "@" : nickrec->halfop ? "%" : -- cgit v1.2.3