forget testing with compiles, how about real life testing
This commit is contained in:
parent
162296c6cf
commit
5902084690
3 changed files with 3 additions and 4 deletions
|
@ -174,7 +174,7 @@ static int do_set_autoupdate(User *u, char **av, int ac)
|
|||
chanalert(s_SecureServ, "%s enabled AutoUpdate Mode", u->nick);
|
||||
SetConf((void *)1, CFGINT, "AutoUpdate");
|
||||
if (SecureServ.autoupgrade != 1) {
|
||||
add_mod_timer("DownLoadDat", "DownLoadNewDat", __module_info.module_name, 3600);
|
||||
add_mod_timer("AutoUpdate", "DownLoadNewDat", __module_info.module_name, 7200);
|
||||
}
|
||||
SecureServ.autoupgrade = 1;
|
||||
return 1;
|
||||
|
@ -334,7 +334,7 @@ static int Online(char **av, int ac)
|
|||
SecureServ.isonline = 1;
|
||||
LoadMonChans();
|
||||
if (SecureServ.autoupgrade == 1) {
|
||||
add_mod_timer("DownLoadDat", "DownLoadNewDat", __module_info.module_name, 3600);
|
||||
add_mod_timer("AutoUpdate", "DownLoadNewDat", __module_info.module_name, 7200);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -159,7 +159,7 @@ struct SecureServ {
|
|||
/* update.c */
|
||||
int do_update(User *u, char **av, int ac);
|
||||
void GotHTTPAddress(char *data, adns_answer *a);
|
||||
|
||||
int AutoUpdate(void);
|
||||
|
||||
/* OnJoin.c */
|
||||
void JoinNewChan();
|
||||
|
|
1
update.c
1
update.c
|
@ -39,7 +39,6 @@
|
|||
void datver(void *data, int status, char *ver, int versize);
|
||||
void datdownload(void *data, int status, char *ver, int versize);
|
||||
void GotHTTPAddress(char *data, adns_answer *a);
|
||||
int AutoUpdate(void);
|
||||
static int DownLoadDat(void);
|
||||
|
||||
static char ss_buf[SS_BUF_SIZE];
|
||||
|
|
Reference in a new issue