1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
4 <TITLE> [IRCServices Coding] Getting Main nickname from a nickgroup ID..
6 <LINK REL=
"Index" HREF=
"index.html" >
7 <LINK REL=
"made" HREF=
"mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20Getting%20Main%20nickname%20from%20a%20nickgroup%20ID..&In-Reply-To=E1ATZpI-0007hQ-7X%40ptb-relay01.plus.net">
8 <META NAME=
"robots" CONTENT=
"index,nofollow">
9 <META http-equiv=
"Content-Type" content=
"text/html; charset=us-ascii">
10 <LINK REL=
"Previous" HREF=
"002830.html">
11 <LINK REL=
"Next" HREF=
"002832.html">
13 <BODY BGCOLOR=
"#ffffff">
14 <H1>[IRCServices Coding] Getting Main nickname from a nickgroup ID..
</H1>
16 <A HREF=
"mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20Getting%20Main%20nickname%20from%20a%20nickgroup%20ID..&In-Reply-To=E1ATZpI-0007hQ-7X%40ptb-relay01.plus.net"
17 TITLE=
"[IRCServices Coding] Getting Main nickname from a nickgroup ID..">achurch at achurch.org
19 <I>Tue Dec
9 14:
38:
05 PST
2003</I>
21 <LI>Previous message:
<A HREF=
"002830.html">[IRCServices Coding] Getting Main nickname from a nickgroup ID..
23 <LI>Next message:
<A HREF=
"002832.html">[IRCServices Coding] Event ordering
25 <LI> <B>Messages sorted by:
</B>
26 <a href=
"date.html#2831">[ date ]
</a>
27 <a href=
"thread.html#2831">[ thread ]
</a>
28 <a href=
"subject.html#2831">[ subject ]
</a>
29 <a href=
"author.html#2831">[ author ]
</a>
34 <PRE>><i>i was trying to do this today, some files for my hostserv module have the filenames of that users nickgroup, so the vhost sets on ID.. however, when i did a get_ngi_id(filename), it somehow came out with the error:
35 </I>><i>[Dec
09 04:
19:
01 2003] nickserv/main: Unable to get NickGroupInfo (id
136191691) at hostserv.c:
155
36 </I>><i>then seg-faulted.. which i thought was kinda bizare, especially concidering the nickgroup in question was
3.. could this be caused by bad casting? or am i doing something wrong? if its either of these, whats the best way to solve it?
38 get_ngi_id() takes the numeric nickgroup ID; it looks like you're
39 passing a string. The crash is probably you not checking for a NULL
43 <A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">achurch at achurch.org
</A>
44 <A HREF=
"http://achurch.org/">http://achurch.org/
</A>
52 <LI>Previous message:
<A HREF=
"002830.html">[IRCServices Coding] Getting Main nickname from a nickgroup ID..
54 <LI>Next message:
<A HREF=
"002832.html">[IRCServices Coding] Event ordering
56 <LI> <B>Messages sorted by:
</B>
57 <a href=
"date.html#2831">[ date ]
</a>
58 <a href=
"thread.html#2831">[ thread ]
</a>
59 <a href=
"subject.html#2831">[ subject ]
</a>
60 <a href=
"author.html#2831">[ author ]
</a>