summaryrefslogtreecommitdiff
path: root/src/irc/irc-recv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc/irc-recv.c')
-rw-r--r--src/irc/irc-recv.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/irc/irc-recv.c b/src/irc/irc-recv.c
index 3ef4a2148..c49240f01 100644
--- a/src/irc/irc-recv.c
+++ b/src/irc/irc-recv.c
@@ -414,8 +414,11 @@ irc_cmd_recv_invite (t_irc_server *server, char *host, char *nick, char *argumen
GUI_COLOR(COLOR_WIN_CHAT),
GUI_COLOR(COLOR_WIN_CHAT_NICK),
nick);
- hotlist_add (HOTLIST_HIGHLIGHT, server, server->buffer, 0);
- gui_status_draw (gui_current_window->buffer, 1);
+ if (gui_add_hotlist && (server->buffer->num_displayed == 0))
+ {
+ hotlist_add (HOTLIST_HIGHLIGHT, server, server->buffer, 0);
+ gui_status_draw (gui_current_window->buffer, 1);
+ }
}
}
else
@@ -1025,8 +1028,11 @@ irc_cmd_recv_notice (t_irc_server *server, char *host, char *nick, char *argumen
(ascii_strcasecmp (nick, "chanserv") != 0) &&
(ascii_strcasecmp (nick, "memoserv") != 0))
{
- hotlist_add (HOTLIST_PRIVATE, server, server->buffer, 0);
- gui_status_draw (gui_current_window->buffer, 1);
+ if (gui_add_hotlist && (server->buffer->num_displayed == 0))
+ {
+ hotlist_add (HOTLIST_PRIVATE, server, server->buffer, 0);
+ gui_status_draw (gui_current_window->buffer, 1);
+ }
}
}
}