summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-channel.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2019-05-10 22:25:56 +0200
committerSébastien Helleu <flashcode@flashtux.org>2019-05-10 22:25:56 +0200
commit26ba04b4542ccf2b30c1391edecea4922ab31c19 (patch)
treecf61e334a2bb52fc77ca98d653a7fd0008f51f0e /src/plugins/irc/irc-channel.c
parent35237c8088678e87aab1bbe11166ba88cf58f1a2 (diff)
downloadweechat-26ba04b4542ccf2b30c1391edecea4922ab31c19.zip
irc: set buffer local variable "nick_host" when a channel buffer is opened
Diffstat (limited to 'src/plugins/irc/irc-channel.c')
-rw-r--r--src/plugins/irc/irc-channel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-channel.c b/src/plugins/irc/irc-channel.c
index 7fedb88af..96306fa6a 100644
--- a/src/plugins/irc/irc-channel.c
+++ b/src/plugins/irc/irc-channel.c
@@ -328,6 +328,7 @@ irc_channel_create_buffer (struct t_irc_server *server,
weechat_buffer_set (ptr_buffer, "localvar_set_type",
(channel_type == IRC_CHANNEL_TYPE_CHANNEL) ? "channel" : "private");
weechat_buffer_set (ptr_buffer, "localvar_set_nick", server->nick);
+ weechat_buffer_set (ptr_buffer, "localvar_set_nick_host", server->nick_host);
weechat_buffer_set (ptr_buffer, "localvar_set_server", server->name);
weechat_buffer_set (ptr_buffer, "localvar_set_channel", channel_name);
if (server->is_away && server->away_message)