summaryrefslogtreecommitdiff
path: root/src/irc/core/channel-rejoin.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-11-04 18:56:14 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-11-04 18:56:14 +0000
commit745a3e21041f5f718bf674e1790c75fe38c4dbc2 (patch)
tree76c09c4da41842f7c7b69aa976ce6d76a710fa53 /src/irc/core/channel-rejoin.c
parentcbcf1b07bc35bd2f6617db3c45cd8edefb4a93ca (diff)
downloadirssi-745a3e21041f5f718bf674e1790c75fe38c4dbc2.zip
added small sanity check
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@807 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/core/channel-rejoin.c')
-rw-r--r--src/irc/core/channel-rejoin.c3
1 files changed, 2 insertions, 1 deletions
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) {