[IRCServices Coding] OperServ UPDATE suggestion

Craig Edwards brain at brainbox.winbot.co.uk
Tue Dec 31 12:13:58 PST 2002


I think sync_operserv_db calls into the db module to cause some form of "save all" effect. Either that, or there are commands you tried and you forgot to include chanserv.h and nickserv.h etc? Im not sure, my services hacking skills are going rusty *pokes andy or another coder for proper answer*

>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