]> jfr.im git - irc.git/blob - software/RELEASES/ircservices/achurch.org/services/lists/ircservices-coding/2002/001822.html
rename -> *.git
[irc.git] / software / RELEASES / ircservices / achurch.org / services / lists / ircservices-coding / 2002 / 001822.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2 <HTML>
3 <HEAD>
4 <TITLE> [IRCServices Coding] OperServ UPDATE suggestion
5 </TITLE>
6 <LINK REL="Index" HREF="index.html" >
7 <LINK REL="made" HREF="mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20OperServ%20UPDATE%20suggestion&In-Reply-To=">
8 <META NAME="robots" CONTENT="index,nofollow">
9 <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
10 <LINK REL="Previous" HREF="001820.html">
11
12 </HEAD>
13 <BODY BGCOLOR="#ffffff">
14 <H1>[IRCServices Coding] OperServ UPDATE suggestion</H1>
15 <B>Craig Edwards</B>
16 <A HREF="mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20OperServ%20UPDATE%20suggestion&In-Reply-To="
17 TITLE="[IRCServices Coding] OperServ UPDATE suggestion">brain at brainbox.winbot.co.uk
18 </A><BR>
19 <I>Tue Dec 31 12:13:58 PST 2002</I>
20 <P><UL>
21 <LI>Previous message: <A HREF="001820.html">[IRCServices Coding] mailing list issues
22 </A></li>
23
24 <LI> <B>Messages sorted by:</B>
25 <a href="date.html#1822">[ date ]</a>
26 <a href="thread.html#1822">[ thread ]</a>
27 <a href="subject.html#1822">[ subject ]</a>
28 <a href="author.html#1822">[ author ]</a>
29 </LI>
30 </UL>
31 <HR>
32 <!--beginarticle-->
33 <PRE>I think sync_operserv_db calls into the db module to cause some form of &quot;save all&quot; 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*
34
35 &gt;<i>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:
36 </I>&gt;<i>
37 </I>&gt;<i>modules/operserv/main.c:
38 </I>&gt;<i>
39 </I>&gt;<i>
40 </I>&gt;<i>/* Callback for saving data. */
41 </I>&gt;<i>
42 </I>&gt;<i>static int do_save_data(void)
43 </I>&gt;<i>{
44 </I>&gt;<i> sync_operserv_db(OperDBName);
45 </I>&gt;<i> return 0;
46 </I>&gt;<i>}
47 </I>&gt;<i>
48 </I>&gt;<i>
49 </I>&gt;<i>I tried to add this (with the appropriate static char's):
50 </I>&gt;<i>
51 </I>&gt;<i>
52 </I>&gt;<i>/* Callback for saving data. */
53 </I>&gt;<i>
54 </I>&gt;<i>static int do_save_data(void)
55 </I>&gt;<i>{
56 </I>&gt;<i> sync_channel_db(ChanDBName);
57 </I>&gt;<i> sync_operserv_db(OperDBName);
58 </I>&gt;<i> sync_statserv_db(StatDBName);
59 </I>&gt;<i> return 0;
60 </I>&gt;<i>}
61 </I>&gt;<i>
62 </I>&gt;<i>
63 </I>&gt;<i>and I couldn't get it to work.
64 </I>&gt;<i>
65 </I>&gt;<i>Ideas?
66 </I>&gt;<i>
67 </I>&gt;<i>
68 </I>&gt;<i>
69 </I>&gt;<i>/Patrick Fish
70 </I>&gt;<i>
71 </I>&gt;<i>
72 </I>&gt;<i>---
73 </I>&gt;<i>Outgoing mail is certified Virus Free.
74 </I>&gt;<i>Checked by AVG anti-virus system (<A HREF="http://www.grisoft.com">http://www.grisoft.com</A>).
75 </I>&gt;<i>Version: 6.0.427 / Virus Database: 240 - Release Date: 12/6/2002
76 </I>
77
78
79 </PRE>
80
81 <!--endarticle-->
82 <HR>
83 <P><UL>
84 <!--threads-->
85 <LI>Previous message: <A HREF="001820.html">[IRCServices Coding] mailing list issues
86 </A></li>
87
88 <LI> <B>Messages sorted by:</B>
89 <a href="date.html#1822">[ date ]</a>
90 <a href="thread.html#1822">[ thread ]</a>
91 <a href="subject.html#1822">[ subject ]</a>
92 <a href="author.html#1822">[ author ]</a>
93 </LI>
94 </UL>
95
96 </body></html>