]> jfr.im git - irc.git/blob - software/!RELEASES/ircservices/achurch.org/services/lists/ircservices/2001/001393.html
RELEASE -> !RELEASE
[irc.git] / software / !RELEASES / ircservices / achurch.org / services / lists / ircservices / 2001 / 001393.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2 <HTML>
3 <HEAD>
4 <TITLE> [IRCServices] services operator bug (4.5pre5)
5 </TITLE>
6 <LINK REL="Index" HREF="index.html" >
7 <LINK REL="made" HREF="mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20services%20operator%20bug%20%284.5pre5%29&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="001392.html">
11 <LINK REL="Next" HREF="001394.html">
12 </HEAD>
13 <BODY BGCOLOR="#ffffff">
14 <H1>[IRCServices] services operator bug (4.5pre5)</H1>
15 <B>Josh</B>
16 <A HREF="mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20services%20operator%20bug%20%284.5pre5%29&In-Reply-To="
17 TITLE="[IRCServices] services operator bug (4.5pre5)">grenday288 at geocities.com
18 </A><BR>
19 <I>Sun Feb 11 11:24:33 PST 2001</I>
20 <P><UL>
21 <LI>Previous message: <A HREF="001392.html">[IRCServices] Chanserv Bug?
22 </A></li>
23 <LI>Next message: <A HREF="001394.html">[IRCServices] services operator bug (4.5pre5)
24 </A></li>
25 <LI> <B>Messages sorted by:</B>
26 <a href="date.html#1393">[ date ]</a>
27 <a href="thread.html#1393">[ thread ]</a>
28 <a href="subject.html#1393">[ subject ]</a>
29 <a href="author.html#1393">[ author ]</a>
30 </LI>
31 </UL>
32 <HR>
33 <!--beginarticle-->
34 <PRE>services operators cant be added because there is no code in
35 privlist_add to add serivces_opers... it always adds them as
36 services_admins
37
38
39
40 --- ../ircservices-4.5pre5/operserv.c Thu Feb 8 19:06:30 2001
41 +++ operserv.c Sun Feb 11 13:16:30 2001
42 @@ -590,7 +590,11 @@ static void privlist_add(User *u, int li
43 if (list[i] == ni) {
44 notice_lang(s_OperServ, u, msgs[MSG_EXISTS], ni-&gt;nick);
45 } else if (i &lt; max) {
46 - services_admins[i] = ni;
47 + if (!listid) {
48 + services_admins[i] = ni;
49 + } else {
50 + services_opers[i] = ni;
51 + }
52 notice_lang(s_OperServ, u, msgs[MSG_ADDED], ni-&gt;nick);
53 if (readonly)
54 notice_lang(s_OperServ, u, READ_ONLY_MODE);
55
56
57 (might not be the greatest code.. but it works)
58
59
60 </PRE>
61
62 <!--endarticle-->
63 <HR>
64 <P><UL>
65 <!--threads-->
66 <LI>Previous message: <A HREF="001392.html">[IRCServices] Chanserv Bug?
67 </A></li>
68 <LI>Next message: <A HREF="001394.html">[IRCServices] services operator bug (4.5pre5)
69 </A></li>
70 <LI> <B>Messages sorted by:</B>
71 <a href="date.html#1393">[ date ]</a>
72 <a href="thread.html#1393">[ thread ]</a>
73 <a href="subject.html#1393">[ subject ]</a>
74 <a href="author.html#1393">[ author ]</a>
75 </LI>
76 </UL>
77
78 </body></html>