From 7c626c27863f6b41db573cb2e8d022571f446669 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sun, 8 Feb 2009 22:07:45 +0100 Subject: [PATCH] Add new signals "irc_channel_opened" and "irc_pv_opened" --- src/plugins/irc/irc-channel.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/irc/irc-channel.c b/src/plugins/irc/irc-channel.c index 596c0beb7..9004b7df4 100644 --- a/src/plugins/irc/irc-channel.c +++ b/src/plugins/irc/irc-channel.c @@ -179,6 +179,10 @@ irc_channel_new (struct t_irc_server *server, int channel_type, (auto_switch) ? "auto" : "1"); } + weechat_hook_signal_send ((channel_type == IRC_CHANNEL_TYPE_CHANNEL) ? + "irc_channel_opened" : "irc_pv_opened", + WEECHAT_HOOK_SIGNAL_POINTER, new_buffer); + /* all is ok, return address of new channel */ return new_channel; }