1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 08:13:14 +02:00

Added nick alignment in private buffers

This commit is contained in:
Sebastien Helleu
2006-04-03 09:35:08 +00:00
parent 08b0272a9b
commit 212ec7a76d
18 changed files with 1930 additions and 1956 deletions
+9 -12
View File
@@ -1008,13 +1008,8 @@ user_command (t_irc_server *server, t_irc_channel *channel, char *command, int o
if (CHANNEL(buffer)->type == CHANNEL_TYPE_PRIVATE)
{
gui_printf_type (buffer,
MSG_TYPE_NICK,
"%s<%s%s%s> ",
GUI_COLOR(COLOR_WIN_CHAT_DARK),
GUI_COLOR(COLOR_WIN_NICK_SELF),
server->nick,
GUI_COLOR(COLOR_WIN_CHAT_DARK));
irc_display_nick (buffer, NULL, server->nick,
MSG_TYPE_NICK, 1, COLOR_WIN_NICK_SELF, 0);
gui_printf_type (buffer,
MSG_TYPE_MSG,
"%s%s\n",
@@ -1028,11 +1023,13 @@ user_command (t_irc_server *server, t_irc_channel *channel, char *command, int o
if (ptr_nick)
{
irc_display_nick (buffer, ptr_nick, NULL,
MSG_TYPE_NICK, 1, 1, 0);
gui_printf (buffer,
"%s\n",
(command_with_colors2) ?
command_with_colors2 : command);
MSG_TYPE_NICK, 1, -1, 0);
gui_printf_type (buffer,
MSG_TYPE_MSG,
"%s%s\n",
GUI_COLOR(COLOR_WIN_CHAT),
(command_with_colors2) ?
command_with_colors2 : command);
}
else
{