1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
4 <TITLE> [IRCServices Coding] Weird stuff with delnick()
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">
13 <BODY BGCOLOR=
"#ffffff">
14 <H1>[IRCServices Coding] Weird stuff with delnick()
</H1>
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
19 <I>Fri Sep
27 11:
46:
44 PDT
2002</I>
21 <LI>Previous message:
<A HREF=
"001524.html">[IRCServices Coding] MySQL
23 <LI>Next message:
<A HREF=
"001532.html">[IRCServices Coding] Guest nick
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>
34 <PRE> ngi-
>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-
>nicks_count-- is done by the ARRAY_REMOVE macro.
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>
44 </I>><i>I used delnick() in one of my modules and I saw that it checks whether
45 </I>><i>ngi-
>nicks_count ==
0, and if it's the case, removes the whole
46 </I>><i>nickgroupinfo.
47 </I>><i>Although, I called delnick() with the only nick in a group, but the
48 </I>><i>reference to the according ngi remained valid and ngi-
>mainnick was set to
49 </I>><i>65536 (
0-
1 in unsigned short).
50 </I>><i>Isn't there a ngi-
>nicks_count-- missing somewhere in
51 </I>><i>modules/nickserv/util.c:delnick() ?
55 </I>><i>------------------------------------------------------------------
56 </I>><i>To unsubscribe or change your subscription options, visit:
57 </I>><i><A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
</A>
65 <LI>Previous message:
<A HREF=
"001524.html">[IRCServices Coding] MySQL
67 <LI>Next message:
<A HREF=
"001532.html">[IRCServices Coding] Guest nick
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>