summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-channel.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-10-24 15:12:32 +0200
committerSebastien Helleu <flashcode@flashtux.org>2008-10-24 15:12:32 +0200
commite37f7fa2b2e0a0c9abc3f0333c619a87c5714bf9 (patch)
tree79446b70de29155e8c886a3ea98f9080f9d2a820 /src/plugins/irc/irc-channel.c
parentd19162626b2899ceebd2be9469e9ae4ab71fa641 (diff)
downloadweechat-e37f7fa2b2e0a0c9abc3f0333c619a87c5714bf9.zip
Add local variables for buffers, fix alias creation, use of local variables $nick/$channel/$server in alias
Diffstat (limited to 'src/plugins/irc/irc-channel.c')
-rw-r--r--src/plugins/irc/irc-channel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-channel.c b/src/plugins/irc/irc-channel.c
index 2c015ed57..0d2debba5 100644
--- a/src/plugins/irc/irc-channel.c
+++ b/src/plugins/irc/irc-channel.c
@@ -97,6 +97,9 @@ irc_channel_new (struct t_irc_server *server, int channel_type,
}
weechat_buffer_set (new_buffer, "short_name", channel_name);
+ weechat_buffer_set (new_buffer, "localvar_set_nick", server->nick);
+ weechat_buffer_set (new_buffer, "localvar_set_server", server->name);
+ weechat_buffer_set (new_buffer, "localvar_set_channel", channel_name);
weechat_hook_signal_send ("logger_backlog",
WEECHAT_HOOK_SIGNAL_POINTER, new_buffer);