1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-27 05:20:20 -04:00

Added /SET channels_rejoin_unavailable to disable automatic rejoining when channel is unavailable. Efnet is stupid and uses the same numeric for joining juped channels and k-lines you after trying to constantly join it.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3062 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-12-20 14:37:56 +00:00 committed by cras
parent cafb1e0805
commit 495501c284

View File

@ -21,6 +21,7 @@
#include "module.h"
#include "signals.h"
#include "settings.h"
#include "misc.h"
#include "irc-servers.h"
@ -75,6 +76,9 @@ static void channel_rejoin(IRC_SERVER_REC *server, const char *channel)
g_return_if_fail(IS_IRC_SERVER(server));
g_return_if_fail(channel != NULL);
if (!settings_get_bool("channels_rejoin_unavailable"))
return;
chanrec = irc_channel_find(server, channel);
if (chanrec == NULL || chanrec->joined) return;
@ -250,6 +254,8 @@ static void cmd_rmrejoins(const char *data, IRC_SERVER_REC *server)
void channel_rejoin_init(void)
{
settings_add_bool("servers", "channels_rejoin_unavailable", TRUE);
rejoin_tag = g_timeout_add(REJOIN_TIMEOUT,
(GSourceFunc) sig_rejoin, NULL);