summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fe-common/core/fe-messages.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/fe-common/core/fe-messages.c b/src/fe-common/core/fe-messages.c
index 1f10d3a8..1a074f31 100644
--- a/src/fe-common/core/fe-messages.c
+++ b/src/fe-common/core/fe-messages.c
@@ -40,10 +40,13 @@ static char *get_nickmode(CHANNEL_REC *channel, const char *nick)
g_return_val_if_fail(nick != NULL, NULL);
+ if (!settings_get_bool("show_nickmode"))
+ return "";
+
nickrec = channel == NULL ? NULL :
nicklist_find(channel, nick);
- return (nickrec == NULL || !settings_get_bool("show_nickmode")) ?
- "" : (nickrec->op ? "@" : (nickrec->voice ? "+" : " "));
+ return nickrec == NULL ? " " :
+ (nickrec->op ? "@" : (nickrec->voice ? "+" : " "));
}
static void sig_message_public(SERVER_REC *server, const char *msg,