More bool conversions [ci skip]
This commit is contained in:
parent
8fbc1152bb
commit
818c157a6d
3 changed files with 15 additions and 15 deletions
|
@ -65,9 +65,9 @@ extern const unsigned long int datecode;
|
||||||
extern const char *ircd_version;
|
extern const char *ircd_version;
|
||||||
extern const char *logFileName;
|
extern const char *logFileName;
|
||||||
extern const char *pidFileName;
|
extern const char *pidFileName;
|
||||||
extern int dorehash;
|
extern bool dorehash;
|
||||||
extern int dorehashbans;
|
extern bool dorehashbans;
|
||||||
extern int doremotd;
|
extern bool doremotd;
|
||||||
extern bool kline_queued;
|
extern bool kline_queued;
|
||||||
extern int server_state_foreground;
|
extern int server_state_foreground;
|
||||||
extern int opers_see_all_users; /* sno_farconnect.so loaded, operspy without
|
extern int opers_see_all_users; /* sno_farconnect.so loaded, operspy without
|
||||||
|
|
12
ircd/ircd.c
12
ircd/ircd.c
|
@ -99,9 +99,9 @@ const char *logFileName = LPATH;
|
||||||
const char *pidFileName = PPATH;
|
const char *pidFileName = PPATH;
|
||||||
|
|
||||||
char **myargv;
|
char **myargv;
|
||||||
int dorehash = 0;
|
bool dorehash = false;
|
||||||
int dorehashbans = 0;
|
bool dorehashbans = false;
|
||||||
int doremotd = 0;
|
bool doremotd = false;
|
||||||
bool kline_queued = false;
|
bool kline_queued = false;
|
||||||
int server_state_foreground = 0;
|
int server_state_foreground = 0;
|
||||||
int opers_see_all_users = 0;
|
int opers_see_all_users = 0;
|
||||||
|
@ -278,13 +278,13 @@ check_rehash(void *unused)
|
||||||
if(dorehash)
|
if(dorehash)
|
||||||
{
|
{
|
||||||
rehash(1);
|
rehash(1);
|
||||||
dorehash = 0;
|
dorehash = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(dorehashbans)
|
if(dorehashbans)
|
||||||
{
|
{
|
||||||
rehash_bans(1);
|
rehash_bans(1);
|
||||||
dorehashbans = 0;
|
dorehashbans = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(doremotd)
|
if(doremotd)
|
||||||
|
@ -292,7 +292,7 @@ check_rehash(void *unused)
|
||||||
sendto_realops_snomask(SNO_GENERAL, L_ALL,
|
sendto_realops_snomask(SNO_GENERAL, L_ALL,
|
||||||
"Got signal SIGUSR1, reloading ircd motd file");
|
"Got signal SIGUSR1, reloading ircd motd file");
|
||||||
cache_user_motd();
|
cache_user_motd();
|
||||||
doremotd = 0;
|
doremotd = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -64,7 +64,7 @@ sigterm_handler(int sig)
|
||||||
static void
|
static void
|
||||||
sighup_handler(int sig)
|
sighup_handler(int sig)
|
||||||
{
|
{
|
||||||
dorehash = 1;
|
dorehash = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -73,13 +73,13 @@ sighup_handler(int sig)
|
||||||
static void
|
static void
|
||||||
sigusr1_handler(int sig)
|
sigusr1_handler(int sig)
|
||||||
{
|
{
|
||||||
doremotd = 1;
|
doremotd = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
sigusr2_handler(int sig)
|
sigusr2_handler(int sig)
|
||||||
{
|
{
|
||||||
dorehashbans = 1;
|
dorehashbans = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -88,7 +88,7 @@ sigusr2_handler(int sig)
|
||||||
static void
|
static void
|
||||||
sigint_handler(int sig)
|
sigint_handler(int sig)
|
||||||
{
|
{
|
||||||
static int restarting = 0;
|
static bool restarting = false;
|
||||||
|
|
||||||
if(server_state_foreground)
|
if(server_state_foreground)
|
||||||
{
|
{
|
||||||
|
@ -98,9 +98,9 @@ sigint_handler(int sig)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ilog(L_MAIN, "Server Restarting on SIGINT");
|
ilog(L_MAIN, "Server Restarting on SIGINT");
|
||||||
if(restarting == 0)
|
if(!restarting)
|
||||||
{
|
{
|
||||||
restarting = 1;
|
restarting = true;
|
||||||
server_reboot();
|
server_reboot();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue