[IRCServices Coding] OperServ UPDATE suggestion

Patrick Fish patrick at pwhsnet.com
Sat Dec 28 21:38:56 PST 2002


I think it would be better when using OperServ UPDATE would update *all* databases. Correct me if I'm wrong, but it looks like it only updates the OperServ DB:

modules/operserv/main.c:


/* Callback for saving data. */

static int do_save_data(void)
{
    sync_operserv_db(OperDBName);
    return 0;
}


I tried to add this (with the appropriate static char's):


/* Callback for saving data. */

static int do_save_data(void)
{
    sync_channel_db(ChanDBName);
    sync_operserv_db(OperDBName);
    sync_statserv_db(StatDBName);
    return 0;
}


and I couldn't get it to work.

Ideas?



/Patrick Fish


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.427 / Virus Database: 240 - Release Date: 12/6/2002
-------------- next part --------------
An HTML attachment was scrubbed...
URL: ../attachments/20021228/b934b678/attachment.html