1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

If nick isn't found from channel (for whatever reason), print the nick

mode as " ", not "".


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@786 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-10-27 01:19:15 +00:00 committed by cras
parent b875e2e29d
commit ed1b4e69a9

View File

@ -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,