summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-02-08 22:07:45 +0100
committerSebastien Helleu <flashcode@flashtux.org>2009-02-08 22:07:45 +0100
commit7c626c27863f6b41db573cb2e8d022571f446669 (patch)
treeb5f2c5f2e455ac4b7c75fb164a18467e0990b2f6
parent29bc0276bc6d4495f75aa94ef246c3863bf46656 (diff)
downloadweechat-7c626c27863f6b41db573cb2e8d022571f446669.zip
Add new signals "irc_channel_opened" and "irc_pv_opened"
-rw-r--r--src/plugins/irc/irc-channel.c4
1 files changed, 4 insertions, 0 deletions
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;
}