diff options
author | Timo Sirainen <cras@irssi.org> | 2000-11-04 18:56:14 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-11-04 18:56:14 +0000 |
commit | 745a3e21041f5f718bf674e1790c75fe38c4dbc2 (patch) | |
tree | 76c09c4da41842f7c7b69aa976ce6d76a710fa53 /src | |
parent | cbcf1b07bc35bd2f6617db3c45cd8edefb4a93ca (diff) | |
download | irssi-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')
-rw-r--r-- | src/irc/core/channel-rejoin.c | 3 |
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) { |