From 745a3e21041f5f718bf674e1790c75fe38c4dbc2 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 4 Nov 2000 18:56:14 +0000 Subject: added small sanity check git-svn-id: http://svn.irssi.org/repos/irssi/trunk@807 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/channel-rejoin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/irc/core') diff --git a/src/irc/core/channel-rejoin.c b/src/irc/core/channel-rejoin.c index e9b783ed..7db53c0d 100644 --- a/src/irc/core/channel-rejoin.c +++ b/src/irc/core/channel-rejoin.c @@ -27,7 +27,7 @@ #include "irc-channels.h" #include "channel-rejoin.h" -#define REJOIN_TIMEOUT (1000*60*5) /* try to rejoin every 5 minutes */ +#define REJOIN_TIMEOUT (1000*60/**5*/) /* try to rejoin every 5 minutes */ static int rejoin_tag; @@ -75,6 +75,7 @@ static void channel_rejoin(IRC_SERVER_REC *server, const char *channel) g_return_if_fail(channel != NULL); chanrec = irc_channel_find(server, channel); + if (chanrec == NULL || chanrec->joined) return; rec = rejoin_find(server, channel); if (rec != NULL) { -- cgit v1.2.3