]> jfr.im git - irc.git/blob - software/!RELEASES/ircservices/achurch.org/services/lists/ircservices/2001/001941.html
RELEASE -> !RELEASE
[irc.git] / software / !RELEASES / ircservices / achurch.org / services / lists / ircservices / 2001 / 001941.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2 <HTML>
3 <HEAD>
4 <TITLE> [IRCServices] Linked nicks and Operserv
5 </TITLE>
6 <LINK REL="Index" HREF="index.html" >
7 <LINK REL="made" HREF="mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20Linked%20nicks%20and%20Operserv&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="001940.html">
11 <LINK REL="Next" HREF="001943.html">
12 </HEAD>
13 <BODY BGCOLOR="#ffffff">
14 <H1>[IRCServices] Linked nicks and Operserv</H1>
15 <B>Craig Wood</B>
16 <A HREF="mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20Linked%20nicks%20and%20Operserv&In-Reply-To="
17 TITLE="[IRCServices] Linked nicks and Operserv">frostycoolslug at hotmail.com
18 </A><BR>
19 <I>Tue May 29 17:42:00 PDT 2001</I>
20 <P><UL>
21 <LI>Previous message: <A HREF="001940.html">[IRCServices] Linked nicks and Operserv
22 </A></li>
23 <LI>Next message: <A HREF="001943.html">[IRCServices] Linked nicks and Operserv
24 </A></li>
25 <LI> <B>Messages sorted by:</B>
26 <a href="date.html#1941">[ date ]</a>
27 <a href="thread.html#1941">[ thread ]</a>
28 <a href="subject.html#1941">[ subject ]</a>
29 <a href="author.html#1941">[ author ]</a>
30 </LI>
31 </UL>
32 <HR>
33 <!--beginarticle-->
34 <PRE>ok.. i didnt understand a word of that :P
35 can Andrew just make sure that is in the next version please :)
36
37
38 &gt;<i>From: Yusuf Iskenderoglu &lt;<A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">uhc0 at rz.uni-karlsruhe.de</A>&gt;
39 </I>&gt;<i>Reply-To: <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">ircservices at ircservices.za.net</A>
40 </I>&gt;<i>To: &lt;<A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">ircservices at ircservices.za.net</A>&gt;
41 </I>&gt;<i>Subject: Re: [IRCServices] Linked nicks and Operserv
42 </I>&gt;<i>Date: Tue, 29 May 2001 17:34:33 +0200 (CES)
43 </I>&gt;<i>
44 </I>&gt;<i>
45 </I>&gt;<i>Here is the place in the code, checking who is
46 </I>&gt;<i>services admin.
47 </I>&gt;<i>
48 </I>&gt;<i>/* Does the given user have Services admin privileges? */
49 </I>&gt;<i>
50 </I>&gt;<i>int is_services_admin(User *u)
51 </I>&gt;<i>{
52 </I>&gt;<i> int i;
53 </I>&gt;<i>
54 </I>&gt;<i> if (!is_oper_u(u))
55 </I>&gt;<i> return 0;
56 </I>&gt;<i> if (is_services_root(u))
57 </I>&gt;<i> return 1;
58 </I>&gt;<i> if (skeleton)
59 </I>&gt;<i> return 1;
60 </I>&gt;<i> for (i = 0; i &lt; MAX_SERVADMINS; i++) {
61 </I>&gt;<i> if (services_admins[i] &amp;&amp; u-&gt;ni == getlink(services_admins[i])) {
62 </I>&gt;<i> if (nick_identified(u))
63 </I>&gt;<i> return 1;
64 </I>&gt;<i> return 0;
65 </I>&gt;<i> }
66 </I>&gt;<i> }
67 </I>&gt;<i> return 0;
68 </I>&gt;<i>}
69 </I>&gt;<i>
70 </I>&gt;<i>
71 </I>&gt;<i>I am absolutely sure that I did not modify this section.
72 </I>&gt;<i>
73 </I>&gt;<i>The correct code could be:
74 </I>&gt;<i>if (services_admins[i] &amp;&amp; services_admins[i] == getlink(u-&gt;ni)) {
75 </I>&gt;<i>
76 </I>&gt;<i>And this is working, because the nick change changes the value
77 </I>&gt;<i>of u-&gt;ni to getlink(u-&gt;real_ni)
78 </I>&gt;<i>
79 </I>&gt;<i>In my case, u-&gt;ni points to TimeMr14C, because getlink(Enygma)
80 </I>&gt;<i>return TimeMr14C.
81 </I>&gt;<i>
82 </I>&gt;<i>That means, because TimeMr14C as a Services Admin exists,
83 </I>&gt;<i>AND TimeMr14C (value of u-&gt;ni) equals to TimeMr14C (value of
84 </I>&gt;<i>getlink(TimeMr14C))
85 </I>&gt;<i>AND I have identified to NickServ, I get recognised as a
86 </I>&gt;<i>services admin.
87 </I>&gt;<i>
88 </I>&gt;<i>Regards;
89 </I>&gt;<i>yusuf
90 </I>&gt;<i>
91 </I>&gt;<i>
92 </I>&gt;<i>Yusuf Iskenderoglu *** eMail <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">uhc0 at rz.uni-karlsruhe.de</A>
93 </I>&gt;<i>
94 </I>&gt;<i>
95 </I>&gt;<i>-----------------------------------------------------------
96 </I>&gt;<i>To unsubscribe, mail <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">ircservices-request at ircservices.za.net</A>
97 </I>&gt;<i>with the word UNSUBSCRIBE in the subject of the mail.
98 </I>&gt;<i><A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">http://www.ircservices.za.net/mailman/listinfo/ircservices</A>
99 </I>
100 _________________________________________________________________________
101 Get Your Private, Free E-mail from MSN Hotmail at <A HREF="http://www.hotmail.com.">http://www.hotmail.com.</A>
102
103
104 </PRE>
105
106 <!--endarticle-->
107 <HR>
108 <P><UL>
109 <!--threads-->
110 <LI>Previous message: <A HREF="001940.html">[IRCServices] Linked nicks and Operserv
111 </A></li>
112 <LI>Next message: <A HREF="001943.html">[IRCServices] Linked nicks and Operserv
113 </A></li>
114 <LI> <B>Messages sorted by:</B>
115 <a href="date.html#1941">[ date ]</a>
116 <a href="thread.html#1941">[ thread ]</a>
117 <a href="subject.html#1941">[ subject ]</a>
118 <a href="author.html#1941">[ author ]</a>
119 </LI>
120 </UL>
121
122 </body></html>