1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 21:36:37 +02:00

Added alignment for local away message

This commit is contained in:
Sebastien Helleu
2006-04-03 21:12:01 +00:00
parent 5068f4d365
commit 2a34684bc1
2 changed files with 14 additions and 0 deletions
+7
View File
@@ -284,12 +284,19 @@ void
irc_display_away (t_irc_server *server, char *string1, char *string2)
{
t_irc_channel *ptr_channel;
char format[32];
for (ptr_channel = server->channels; ptr_channel;
ptr_channel = ptr_channel->next_channel)
{
if (ptr_channel->type == CHANNEL_TYPE_CHANNEL)
{
if (cfg_look_align_other)
{
snprintf (format, 32, "%%-%ds", cfg_look_align_size + 1);
gui_printf_type (ptr_channel->buffer, MSG_TYPE_NICK,
format, " ");
}
gui_printf_nolog (ptr_channel->buffer,
"%s[%s%s%s %s: %s%s]\n",
GUI_COLOR(COLOR_WIN_CHAT_DARK),
+7
View File
@@ -284,12 +284,19 @@ void
irc_display_away (t_irc_server *server, char *string1, char *string2)
{
t_irc_channel *ptr_channel;
char format[32];
for (ptr_channel = server->channels; ptr_channel;
ptr_channel = ptr_channel->next_channel)
{
if (ptr_channel->type == CHANNEL_TYPE_CHANNEL)
{
if (cfg_look_align_other)
{
snprintf (format, 32, "%%-%ds", cfg_look_align_size + 1);
gui_printf_type (ptr_channel->buffer, MSG_TYPE_NICK,
format, " ");
}
gui_printf_nolog (ptr_channel->buffer,
"%s[%s%s%s %s: %s%s]\n",
GUI_COLOR(COLOR_WIN_CHAT_DARK),