diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2005-10-30 09:56:24 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2005-10-30 09:56:24 +0000 |
commit | 079e4a40281c6e8802885d1331f4c0217addaa19 (patch) | |
tree | 5137fffc0ca6ad208fc076cbd0b9c866dce57bf2 /src/irc/irc-display.c | |
parent | 24ceb3bb95f41b938a4ac1d10fb36cdd33381bf3 (diff) | |
download | weechat-079e4a40281c6e8802885d1331f4c0217addaa19.zip |
- added new setting (look_one_server_buffer): use same buffer for all servers
- fixed DCC bug when looking for ports in range
Diffstat (limited to 'src/irc/irc-display.c')
-rw-r--r-- | src/irc/irc-display.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/irc/irc-display.c b/src/irc/irc-display.c index 2feb09e5a..10d2a103a 100644 --- a/src/irc/irc-display.c +++ b/src/irc/irc-display.c @@ -36,12 +36,12 @@ /* - * irc_display_prefix: display prefix for action or info message + * irc_display_prefix: display a prefix for action/info/error msg * prefix must be 3 chars length */ void -irc_display_prefix (t_gui_buffer *buffer, char *prefix) +irc_display_prefix (t_irc_server *server, t_gui_buffer *buffer, char *prefix) { int type; @@ -65,6 +65,12 @@ irc_display_prefix (t_gui_buffer *buffer, char *prefix) else gui_printf_color (buffer, COLOR_WIN_CHAT_PREFIX1, "%s ", prefix); } + if (server && (server->buffer == buffer) && buffer->all_servers) + { + gui_printf_type_color (buffer, type, COLOR_WIN_CHAT_DARK, "["); + gui_printf_type_color (buffer, type, COLOR_WIN_CHAT_SERVER, "%s", server->name); + gui_printf_type_color (buffer, type, COLOR_WIN_CHAT_DARK, "] "); + } } /* @@ -133,10 +139,11 @@ irc_display_nick (t_gui_buffer *buffer, t_irc_nick *nick, char *nickname, */ void -irc_display_mode (t_gui_buffer *buffer, char *channel_name, char set_flag, +irc_display_mode (t_irc_server *server, t_gui_buffer *buffer, + char *channel_name, char set_flag, char *symbol, char *nick_host, char *message, char *param) { - irc_display_prefix (buffer, PREFIX_INFO); + irc_display_prefix (server, buffer, PREFIX_INFO); gui_printf_color (buffer, COLOR_WIN_CHAT_DARK, "["); gui_printf_color (buffer, COLOR_WIN_CHAT_CHANNEL, "%s", channel_name); gui_printf_color (buffer, COLOR_WIN_CHAT, "/"); |