]> jfr.im git - irc.git/blob - software/!RELEASES/ircservices/achurch.org/services/lists/ircservices/2000/000542.html
RELEASE -> !RELEASE
[irc.git] / software / !RELEASES / ircservices / achurch.org / services / lists / ircservices / 2000 / 000542.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2 <HTML>
3 <HEAD>
4 <TITLE> [IRCServices] [kfiresun@ix.netcom.com: Re: Services Root(s)]
5 </TITLE>
6 <LINK REL="Index" HREF="index.html" >
7 <LINK REL="made" HREF="mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20%5Bkfiresun%40ix.netcom.com%3A%20Re%3A%20Services%20Root%28s%29%5D&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="000541.html">
11 <LINK REL="Next" HREF="000545.html">
12 </HEAD>
13 <BODY BGCOLOR="#ffffff">
14 <H1>[IRCServices] [kfiresun@ix.netcom.com: Re: Services Root(s)]</H1>
15 <B>Sean Kelly</B>
16 <A HREF="mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20%5Bkfiresun%40ix.netcom.com%3A%20Re%3A%20Services%20Root%28s%29%5D&In-Reply-To="
17 TITLE="[IRCServices] [kfiresun@ix.netcom.com: Re: Services Root(s)]">smkelly at zombie.org
18 </A><BR>
19 <I>Mon May 22 21:38:46 PDT 2000</I>
20 <P><UL>
21 <LI>Previous message: <A HREF="000541.html">[IRCServices] Services Roots??
22 </A></li>
23 <LI>Next message: <A HREF="000545.html">[IRCServices] Protocol mismatch (0 != 1) for...
24 </A></li>
25 <LI> <B>Messages sorted by:</B>
26 <a href="date.html#542">[ date ]</a>
27 <a href="thread.html#542">[ thread ]</a>
28 <a href="subject.html#542">[ subject ]</a>
29 <a href="author.html#542">[ author ]</a>
30 </LI>
31 </UL>
32 <HR>
33 <!--beginarticle-->
34 <PRE>This might answer the multiple services root question. I digged it out of my
35 archive of the mailing list.
36
37 ----- Forwarded message from &quot;Kelmar K. Firesun&quot; &lt;<A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">kfiresun at ix.netcom.com</A>&gt; -----
38
39 Date: Sat, 24 Apr 1999 15:55:33 -0500
40 From: &quot;Kelmar K. Firesun&quot; &lt;<A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">kfiresun at ix.netcom.com</A>&gt;
41 To: &lt;<A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">services at dragonfire.net</A>&gt;
42 Subject: Re: Services Root(s)
43
44
45 -----Original Message-----
46 From: Michael Form &lt;<A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">mikef at ot.com</A>&gt;
47 To: <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">services at dragonfire.net</A> &lt;<A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">services at dragonfire.net</A>&gt;
48 Date: Saturday, April 24, 1999 3:04 PM
49 Subject: Services Root(s)
50
51
52 &gt;<i>How can I modify the code to allow more than 1 Services Root?
53 </I>&gt;<i>
54 </I>&gt;<i>
55 </I>
56 One way you can do this is to add a kludge to
57 the is_services_root() in the file operserv.c
58 function like so:
59
60
61
62 /*************************************************************************/
63
64 /* Does the given user have Services root privileges? */
65
66 int is_services_root(User *u)
67 {
68 char s[512], *p, *c;
69
70 /* Make a temp copy to work with */
71 strcpy(s, ServicesRoot);
72
73 c = s;
74
75 while(*c)
76 {
77 p = strpbrk(c, &quot; &quot;);
78
79 if (p != NULL)
80 {
81 *p++ = 0;
82 while(isspace(*p)) p++;
83 }
84 else
85 p = c + strlen(c);
86
87 if (stricmp(u-&gt;nick, c) == 0)
88 return 1;
89
90 c = p;
91 }
92
93 return 0;
94 }
95
96 /* End of modification */
97
98 This will allow you to sperate the root users
99 by a space in the config file like so:
100
101 ServicesRoot &quot;User1 User2 ... UserN&quot;
102
103 Hope this helps!
104
105 Kelmar K. Firesun
106 IRCop EsperNet (<A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">kelmar at esper.net</A>)
107 dream.esper.net port 5555
108
109 ----- End forwarded message -----
110
111 --
112 Sean Kelly &lt;<A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">smkelly at zombie.org</A>&gt; or &lt;<A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">smkelly at slashnet.org</A>&gt;
113 PGP KeyID: 4AC781C7 ICQ UIN: 27955995
114 EFAX: (603) 372-1638 IRC: <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">drdink at SlashNET</A>
115
116 ---------------------------------------------------------------
117 To unsubscribe, send email to <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">majordomo at ender.shadowfire.org</A>
118 with &quot;unsubscribe ircservices&quot; in the body, without the quotes.
119
120
121 </PRE>
122
123 <!--endarticle-->
124 <HR>
125 <P><UL>
126 <!--threads-->
127 <LI>Previous message: <A HREF="000541.html">[IRCServices] Services Roots??
128 </A></li>
129 <LI>Next message: <A HREF="000545.html">[IRCServices] Protocol mismatch (0 != 1) for...
130 </A></li>
131 <LI> <B>Messages sorted by:</B>
132 <a href="date.html#542">[ date ]</a>
133 <a href="thread.html#542">[ thread ]</a>
134 <a href="subject.html#542">[ subject ]</a>
135 <a href="author.html#542">[ author ]</a>
136 </LI>
137 </UL>
138
139 </body></html>