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

Merge pull request #1280 from ailin-nemui/op_public

fix level uninitialised
This commit is contained in:
ailin-nemui 2021-03-06 18:37:34 +01:00 committed by GitHub
commit 5223ff1bcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,11 +87,6 @@ static void sig_message_irc_op_public(SERVER_REC *server, const char *msg,
/* and clean the rest here */
cleantarget = get_visible_target(IRC_SERVER(server), cleantarget);
if (ignore_check_plus(server, nick, address, cleantarget, msg, &level, TRUE)) {
g_free(prefix);
return;
}
chanrec = channel_find(server, cleantarget);
nickmode = channel_get_nickmode(chanrec, nick);
@ -111,6 +106,14 @@ static void sig_message_irc_op_public(SERVER_REC *server, const char *msg,
if (for_me)
level |= MSGLEVEL_HILIGHT;
if (ignore_check_plus(server, nick, address, cleantarget, msg, &level, TRUE)) {
g_free(nickmode);
g_free(color);
g_free(optarget);
g_free(prefix);
return;
}
if (settings_get_bool("emphasis"))
msg = freemsg = expand_emphasis((WI_ITEM_REC *) chanrec, msg);