]>
Commit | Line | Data |
---|---|---|
3bd189cb JR |
1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> |
2 | <HTML> | |
3 | <HEAD> | |
4 | <TITLE> [IRCServices Coding] Getting Main nickname from a nickgroup ID.. | |
5 | </TITLE> | |
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"> | |
12 | </HEAD> | |
13 | <BODY BGCOLOR="#ffffff"> | |
14 | <H1>[IRCServices Coding] Getting Main nickname from a nickgroup ID..</H1> | |
15 | <B>Andrew Church</B> | |
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 | |
18 | </A><BR> | |
19 | <I>Tue Dec 9 14:38:05 PST 2003</I> | |
20 | <P><UL> | |
21 | <LI>Previous message: <A HREF="002830.html">[IRCServices Coding] Getting Main nickname from a nickgroup ID.. | |
22 | </A></li> | |
23 | <LI>Next message: <A HREF="002832.html">[IRCServices Coding] Event ordering | |
24 | </A></li> | |
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> | |
30 | </LI> | |
31 | </UL> | |
32 | <HR> | |
33 | <!--beginarticle--> | |
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? | |
37 | </I> | |
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 | |
40 | pointer return. | |
41 | ||
42 | --Andrew Church | |
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> | |
45 | ||
46 | </PRE> | |
47 | ||
48 | <!--endarticle--> | |
49 | <HR> | |
50 | <P><UL> | |
51 | <!--threads--> | |
52 | <LI>Previous message: <A HREF="002830.html">[IRCServices Coding] Getting Main nickname from a nickgroup ID.. | |
53 | </A></li> | |
54 | <LI>Next message: <A HREF="002832.html">[IRCServices Coding] Event ordering | |
55 | </A></li> | |
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> | |
61 | </LI> | |
62 | </UL> | |
63 | ||
64 | </body></html> |