diff options
author | Timo Sirainen <cras@irssi.org> | 2001-11-19 13:02:39 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-11-19 13:02:39 +0000 |
commit | cf0b863f3969c4cf8c9e09f51cf10dc5bc03cc86 (patch) | |
tree | ec378a990bf3788598258cca2a8bcf4ac5c4f09a /src | |
parent | 0f865f87b9d5cb3a347825bf6c23f713be50d8c9 (diff) | |
download | irssi-cf0b863f3969c4cf8c9e09f51cf10dc5bc03cc86.zip |
/SET join_auto_chans_on_invite - patch by tygrys@moo.pl
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2077 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/irc/core/channel-events.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/irc/core/channel-events.c b/src/irc/core/channel-events.c index 65fe3bf6..fec799e4 100644 --- a/src/irc/core/channel-events.c +++ b/src/irc/core/channel-events.c @@ -22,6 +22,7 @@ #include "signals.h" #include "misc.h" #include "channels-setup.h" +#include "settings.h" #include "irc-servers.h" #include "irc-channels.h" @@ -295,7 +296,7 @@ static void event_invite(IRC_SERVER_REC *server, const char *data) CHANNEL_SETUP_REC *setup; setup = channel_setup_find(channel, server->connrec->chatnet); - if (setup != NULL && setup->autojoin) + if (setup != NULL && setup->autojoin && settings_get_bool("join_auto_chans_on_invite")) server->channels_join(SERVER(server), channel, TRUE); } @@ -314,6 +315,7 @@ void channel_events_init(void) signal_add_first("event 474", (SIGNAL_FUNC) event_cannot_join); /* banned */ signal_add_first("event 475", (SIGNAL_FUNC) event_cannot_join); /* bad channel key */ signal_add_first("event 476", (SIGNAL_FUNC) event_cannot_join); /* bad channel mask */ + signal_add_first("event 379", (SIGNAL_FUNC) event_cannot_join); /* forwarding to another channel */ signal_add("event topic", (SIGNAL_FUNC) event_topic); signal_add_first("event join", (SIGNAL_FUNC) event_join); @@ -335,6 +337,7 @@ void channel_events_deinit(void) signal_remove("event 474", (SIGNAL_FUNC) event_cannot_join); /* banned */ signal_remove("event 475", (SIGNAL_FUNC) event_cannot_join); /* bad channel key */ signal_remove("event 476", (SIGNAL_FUNC) event_cannot_join); /* bad channel mask */ + signal_remove("event 379", (SIGNAL_FUNC) event_cannot_join); /* forwarding to another channel */ signal_remove("event topic", (SIGNAL_FUNC) event_topic); signal_remove("event join", (SIGNAL_FUNC) event_join); |