summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-09-11 15:45:42 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-09-11 15:45:42 +0000
commit41df7da60ead4aba9476a02559240a7fe0f96515 (patch)
tree4b094f7c6192b16f003440d68cf0de8946909cbb /src/irc
parent80664fabb6f0ec0b166177da76e704998ab46034 (diff)
downloadirssi-41df7da60ead4aba9476a02559240a7fe0f96515.zip
Added option /SET channel_sync - if disabled irssi disables the channel
syncing entirely. This breaks /BAN and probably something else too. Just a temporarily kludge until I fix this properly (on demand /USERHOST at /BAN time, etc.). git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1786 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/core/channels-query.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/irc/core/channels-query.c b/src/irc/core/channels-query.c
index 70c2cbc7..79843983 100644
--- a/src/irc/core/channels-query.c
+++ b/src/irc/core/channels-query.c
@@ -41,6 +41,7 @@ loop:
#include "module.h"
#include "misc.h"
#include "signals.h"
+#include "settings.h"
#include "channels.h"
#include "irc.h"
@@ -334,6 +335,9 @@ static void sig_channel_joined(IRC_CHANNEL_REC *channel)
if (!IS_IRC_CHANNEL(channel))
return;
+ if (!settings_get_bool("channel_sync"))
+ return;
+
/* Add channel to query lists */
if (!channel->no_modes)
channel_query_add(channel, CHANNEL_QUERY_MODE);
@@ -592,6 +596,8 @@ static void event_who_abort(IRC_SERVER_REC *server, const char *data)
void channels_query_init(void)
{
+ settings_add_bool("misc", "channel_sync", TRUE);
+
signal_add("server connected", (SIGNAL_FUNC) sig_connected);
signal_add("server disconnected", (SIGNAL_FUNC) sig_disconnected);
signal_add("channel joined", (SIGNAL_FUNC) sig_channel_joined);