mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05: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
@ -27,7 +27,7 @@
|
|||||||
#include "irc-channels.h"
|
#include "irc-channels.h"
|
||||||
#include "channel-rejoin.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;
|
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);
|
g_return_if_fail(channel != NULL);
|
||||||
|
|
||||||
chanrec = irc_channel_find(server, channel);
|
chanrec = irc_channel_find(server, channel);
|
||||||
|
if (chanrec == NULL || chanrec->joined) return;
|
||||||
|
|
||||||
rec = rejoin_find(server, channel);
|
rec = rejoin_find(server, channel);
|
||||||
if (rec != NULL) {
|
if (rec != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user