]> jfr.im git - irc.git/blob - software/RELEASES/ircservices/achurch.org/services/lists/ircservices-coding/2002/001526.html
rename -> *.git
[irc.git] / software / RELEASES / ircservices / achurch.org / services / lists / ircservices-coding / 2002 / 001526.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2 <HTML>
3 <HEAD>
4 <TITLE> [IRCServices Coding] Weird stuff with delnick()
5 </TITLE>
6 <LINK REL="Index" HREF="index.html" >
7 <LINK REL="made" HREF="mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20Weird%20stuff%20with%20delnick%28%29&In-Reply-To=EMEAJDMIHJFMOHONHAEDOEDICGAA.georges%40berscheid.lu">
8 <META NAME="robots" CONTENT="index,nofollow">
9 <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
10 <LINK REL="Previous" HREF="001524.html">
11 <LINK REL="Next" HREF="001532.html">
12 </HEAD>
13 <BODY BGCOLOR="#ffffff">
14 <H1>[IRCServices Coding] Weird stuff with delnick()</H1>
15 <B>Andrew Church</B>
16 <A HREF="mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20Weird%20stuff%20with%20delnick%28%29&In-Reply-To=EMEAJDMIHJFMOHONHAEDOEDICGAA.georges%40berscheid.lu"
17 TITLE="[IRCServices Coding] Weird stuff with delnick()">achurch at achurch.org
18 </A><BR>
19 <I>Fri Sep 27 11:46:44 PDT 2002</I>
20 <P><UL>
21 <LI>Previous message: <A HREF="001524.html">[IRCServices Coding] MySQL
22 </A></li>
23 <LI>Next message: <A HREF="001532.html">[IRCServices Coding] Guest nick
24 </A></li>
25 <LI> <B>Messages sorted by:</B>
26 <a href="date.html#1526">[ date ]</a>
27 <a href="thread.html#1526">[ thread ]</a>
28 <a href="subject.html#1526">[ subject ]</a>
29 <a href="author.html#1526">[ author ]</a>
30 </LI>
31 </UL>
32 <HR>
33 <!--beginarticle-->
34 <PRE> ngi-&gt;mainnick will temporarily be set to -1 on deleting the last nick,
35 but since the nickgroup will be deleted immediately afterward this isn't a
36 problem. ngi-&gt;nicks_count-- is done by the ARRAY_REMOVE macro.
37
38 --Andrew Church
39 <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">achurch at achurch.org</A>
40 <A HREF="http://achurch.org/">http://achurch.org/</A>
41
42 &gt;<i>Hi,
43 </I>&gt;<i>
44 </I>&gt;<i>I used delnick() in one of my modules and I saw that it checks whether
45 </I>&gt;<i>ngi-&gt;nicks_count == 0, and if it's the case, removes the whole
46 </I>&gt;<i>nickgroupinfo.
47 </I>&gt;<i>Although, I called delnick() with the only nick in a group, but the
48 </I>&gt;<i>reference to the according ngi remained valid and ngi-&gt;mainnick was set to
49 </I>&gt;<i>65536 (0-1 in unsigned short).
50 </I>&gt;<i>Isn't there a ngi-&gt;nicks_count-- missing somewhere in
51 </I>&gt;<i>modules/nickserv/util.c:delnick() ?
52 </I>&gt;<i>
53 </I>&gt;<i>Georges
54 </I>&gt;<i>
55 </I>&gt;<i>------------------------------------------------------------------
56 </I>&gt;<i>To unsubscribe or change your subscription options, visit:
57 </I>&gt;<i><A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">http://www.ircservices.za.net/mailman/listinfo/ircservices-coding</A>
58 </I>
59 </PRE>
60
61 <!--endarticle-->
62 <HR>
63 <P><UL>
64 <!--threads-->
65 <LI>Previous message: <A HREF="001524.html">[IRCServices Coding] MySQL
66 </A></li>
67 <LI>Next message: <A HREF="001532.html">[IRCServices Coding] Guest nick
68 </A></li>
69 <LI> <B>Messages sorted by:</B>
70 <a href="date.html#1526">[ date ]</a>
71 <a href="thread.html#1526">[ thread ]</a>
72 <a href="subject.html#1526">[ subject ]</a>
73 <a href="author.html#1526">[ author ]</a>
74 </LI>
75 </UL>
76
77 </body></html>