]> jfr.im git - irc.git/blob - software/!RELEASES/ircservices/achurch.org/services/lists/ircservices/2001/001087.html
RELEASE -> !RELEASE
[irc.git] / software / !RELEASES / ircservices / achurch.org / services / lists / ircservices / 2001 / 001087.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2 <HTML>
3 <HEAD>
4 <TITLE> [IRCServices] Leetle bug in Services I think
5 </TITLE>
6 <LINK REL="Index" HREF="index.html" >
7 <LINK REL="made" HREF="mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20Leetle%20bug%20in%20Services%20I%20think&In-Reply-To=2.2.32.20010115184303.010ce280%40196.14.3.98">
8 <META NAME="robots" CONTENT="index,nofollow">
9 <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
10 <LINK REL="Previous" HREF="001086.html">
11 <LINK REL="Next" HREF="001088.html">
12 </HEAD>
13 <BODY BGCOLOR="#ffffff">
14 <H1>[IRCServices] Leetle bug in Services I think</H1>
15 <B>Sean Kelly</B>
16 <A HREF="mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20Leetle%20bug%20in%20Services%20I%20think&In-Reply-To=2.2.32.20010115184303.010ce280%40196.14.3.98"
17 TITLE="[IRCServices] Leetle bug in Services I think">smkelly at zombie.org
18 </A><BR>
19 <I>Mon Jan 15 10:59:23 PST 2001</I>
20 <P><UL>
21 <LI>Previous message: <A HREF="001086.html">[IRCServices] Leetle bug in Services I think
22 </A></li>
23 <LI>Next message: <A HREF="001088.html">[IRCServices] testing
24 </A></li>
25 <LI> <B>Messages sorted by:</B>
26 <a href="date.html#1087">[ date ]</a>
27 <a href="thread.html#1087">[ thread ]</a>
28 <a href="subject.html#1087">[ subject ]</a>
29 <a href="author.html#1087">[ author ]</a>
30 </LI>
31 </UL>
32 <HR>
33 <!--beginarticle-->
34 <PRE>On Mon, Jan 15, 2001 at 08:43:03PM +0200, Michael Smith wrote:
35 &gt;<i>
36 </I>&gt;<i> Err its a twofold problem
37 </I>&gt;<i>
38 </I>&gt;<i> Dreamforge's svsnick doesnt check to see that the nick isnt already in use
39 </I>&gt;<i> AND , the code in services doesnt generate a different number per unique
40 </I>&gt;<i> instance use, so its probably based on some kind of time stamp
41 </I>&gt;<i>
42 </I>&gt;<i> I have coded a fix for dreamforge, but I'm not sure how badly this will
43 </I>&gt;<i> break servicse
44 </I>
45 I'd be interrested to see the patch.
46
47 &gt;<i>
48 </I>&gt;<i> BTW, does anyone have that patch for multiple services root, I am keen for that
49 </I>&gt;<i> (and It should be a feature in 4.5)
50 </I>
51 Well, this isn't services-coding, but what the hell:
52
53 From: &quot;Kelmar K. Firesun&quot; &lt;<A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">kfiresun at ix.netcom.com</A>&gt;
54 To: &lt;<A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">services at dragonfire.net</A>&gt;
55 Subject: Re: Services Root(s)
56
57 One way you can do this is to add a kludge to
58 the is_services_root() in the file operserv.c
59 function like so:
60
61 /*************************************************************************/
62
63 /* Does the given user have Services root privileges? */
64
65 int is_services_root(User *u)
66 {
67 char s[512], *p, *c;
68
69 /* Make a temp copy to work with */
70 strcpy(s, ServicesRoot);
71
72 c = s;
73
74 while(*c)
75 {
76 p = strpbrk(c, &quot; &quot;);
77
78 if (p != NULL)
79 {
80 *p++ = 0;
81 while(isspace(*p)) p++;
82 }
83 else
84 p = c + strlen(c);
85
86 if (stricmp(u-&gt;nick, c) == 0)
87 return 1;
88
89 c = p;
90 }
91
92 return 0;
93 }
94
95 /* End of modification */
96
97 This will allow you to sperate the root users
98 by a space in the config file like so:
99
100 ServicesRoot &quot;User1 User2 ... UserN&quot;
101
102 Hope this helps!
103
104 Kelmar K. Firesun
105 IRCop EsperNet (<A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">kelmar at esper.net</A>)
106 dream.esper.net port 5555
107
108
109 --
110 Sean Kelly | PGP KeyID: 77042C7B
111 <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">smkelly at zombie.org</A> | <A HREF="http://www.zombie.org">http://www.zombie.org</A>
112
113 For PGP key, send e-mail with subject &quot;send pgp key&quot;
114
115 ---------------------------------------------------------------
116 To unsubscribe, send email to <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">majordomo at snow.shadowfire.org</A>
117 with &quot;unsubscribe ircservices&quot; in the body, without the quotes.
118
119
120 </PRE>
121
122 <!--endarticle-->
123 <HR>
124 <P><UL>
125 <!--threads-->
126 <LI>Previous message: <A HREF="001086.html">[IRCServices] Leetle bug in Services I think
127 </A></li>
128 <LI>Next message: <A HREF="001088.html">[IRCServices] testing
129 </A></li>
130 <LI> <B>Messages sorted by:</B>
131 <a href="date.html#1087">[ date ]</a>
132 <a href="thread.html#1087">[ thread ]</a>
133 <a href="subject.html#1087">[ subject ]</a>
134 <a href="author.html#1087">[ author ]</a>
135 </LI>
136 </UL>
137
138 </body></html>