mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 03:40:16 +02:00
added small sanity check
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@807 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
cbcf1b07bc
commit
745a3e2104
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue