summaryrefslogtreecommitdiff
path: root/src/irc/irc-display.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc/irc-display.c')
-rw-r--r--src/irc/irc-display.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/irc/irc-display.c b/src/irc/irc-display.c
index 78378198c..312d62fbe 100644
--- a/src/irc/irc-display.c
+++ b/src/irc/irc-display.c
@@ -43,11 +43,17 @@
void
irc_display_prefix (t_gui_buffer *buffer, char *prefix)
{
+ int type;
+
+ type = MSG_TYPE_INFO;
+ if (!cfg_log_plugin_msg && (prefix == PREFIX_PLUGIN))
+ type |= MSG_TYPE_NOLOG;
+
if (prefix[0] == prefix[2])
{
- gui_printf_color (buffer, COLOR_WIN_CHAT_PREFIX1, "%c", prefix[0]);
- gui_printf_color (buffer, COLOR_WIN_CHAT_PREFIX2, "%c", prefix[1]);
- gui_printf_color (buffer, COLOR_WIN_CHAT_PREFIX1, "%c ", prefix[2]);
+ gui_printf_color_type (buffer, type, COLOR_WIN_CHAT_PREFIX1, "%c", prefix[0]);
+ gui_printf_color_type (buffer, type, COLOR_WIN_CHAT_PREFIX2, "%c", prefix[1]);
+ gui_printf_color_type (buffer, type, COLOR_WIN_CHAT_PREFIX1, "%c ", prefix[2]);
}
else
gui_printf_color (buffer, COLOR_WIN_CHAT_PREFIX1, "%s ", prefix);