1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-09 11:13:12 +02:00

irc: add bar items "irc_nick", "irc_host" and "irc_nick_host"

This commit is contained in:
Sébastien Helleu
2019-05-07 13:41:58 +02:00
parent 06aa7034fb
commit 35237c8088
4 changed files with 121 additions and 0 deletions
+7
View File
@@ -756,6 +756,8 @@ irc_server_set_nick (struct t_irc_server *server, const char *nick)
}
weechat_bar_item_update ("input_prompt");
weechat_bar_item_update ("irc_nick");
weechat_bar_item_update ("irc_nick_host");
}
/*
@@ -787,6 +789,9 @@ irc_server_set_nick_host (struct t_irc_server *server, const char *host)
weechat_buffer_set (ptr_channel->buffer,
"localvar_set_nick_host", host);
}
weechat_bar_item_update ("irc_host");
weechat_bar_item_update ("irc_nick_host");
}
/*
@@ -5115,6 +5120,8 @@ irc_server_disconnect (struct t_irc_server *server, int switch_address,
{
free (server->nick_host);
server->nick_host = NULL;
weechat_bar_item_update ("irc_host");
weechat_bar_item_update ("irc_nick_host");
}
server->checking_cap_ls = 0;
weechat_hashtable_remove_all (server->cap_ls);