try to include DAT file version into Server Version report, as we have some networks that use OPERS_ONLY setting

This commit is contained in:
Fish 2005-03-01 12:34:02 +00:00
parent d411f2624b
commit c0abc6e279
3 changed files with 8 additions and 2 deletions

View file

@ -40,18 +40,22 @@ static int do_status(User *u, char **av, int ac);
static int NickChange(char **av, int ac);
static int DelNick(char **av, int ac);
static int ss_kick_chan(char **argv, int ac);
char s_SecureServ[MAXNICK];
static ModUser *ss_bot;
char SecureServ_VersionString[BUFSIZE];
ModuleInfo __module_info = {
"SecureServ",
"A Trojan Scanning Bot",
MODULE_VERSION,
SecureServ_VersionString,
__DATE__,
__TIME__
};
void do_servversion() {
irc_snprintf(SecureServ_VersionString, BUFSIZE, "%S - %d", MODULE_VERSION, SecureServ.viriversion);
}
int do_viriversion(User *u, char **av, int ac)
{
prefmsg(u->nick, s_SecureServ, "%d", SecureServ.viriversion);

View file

@ -155,6 +155,7 @@ struct SecureServ {
} SecureServ;
/* SecureServ.c */
void do_servversion();
/* update.c */
int do_update(User *u, char **av, int ac);

1
scan.c
View file

@ -202,6 +202,7 @@ void load_dat(void)
fclose(fp);
}
}
do_servversion();
}
int do_reload(User *u, char **av, int ac)