1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 16:23:14 +02:00

Add new signals "irc_channel_opened" and "irc_pv_opened"

This commit is contained in:
Sebastien Helleu
2009-02-08 22:07:45 +01:00
parent 29bc0276bc
commit 7c626c2786
+4
View File
@@ -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;
}