summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2016-01-14 23:54:42 +0100
committerLemonBoy <thatlemon@gmail.com>2016-01-14 23:54:42 +0100
commit25020808710f359e75a85a5252bf0f72443d09ee (patch)
tree012fe442b6543bc2c89189acddad6b993e2043e2 /src/irc
parent62cab9d662d7f8875de8ee186cbbe4ea6cb891cd (diff)
downloadirssi-25020808710f359e75a85a5252bf0f72443d09ee.zip
Change when the autocmds are sent.
As per #175 if a -botcmd is specified for a given channel without a -bots parameter then the command is sent right after joining the channel.
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/core/irc-channels-setup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/irc/core/irc-channels-setup.c b/src/irc/core/irc-channels-setup.c
index 2320352d..be69ad63 100644
--- a/src/irc/core/irc-channels-setup.c
+++ b/src/irc/core/irc-channels-setup.c
@@ -25,9 +25,11 @@
void irc_channels_setup_init(void)
{
signal_add("channel wholist", (SIGNAL_FUNC) channel_send_autocommands);
+ signal_add("channel joined", (SIGNAL_FUNC) channel_send_autocommands);
}
void irc_channels_setup_deinit(void)
{
signal_remove("channel wholist", (SIGNAL_FUNC) channel_send_autocommands);
+ signal_remove("channel joined", (SIGNAL_FUNC) channel_send_autocommands);
}