1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
4 <TITLE> [IRCServices Coding] coding... (svcs
5)
6 <LINK REL=
"Index" HREF=
"index.html" >
7 <LINK REL=
"made" HREF=
"mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20coding...%20%28svcs%205%29&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=
"000019.html">
11 <LINK REL=
"Next" HREF=
"000026.html">
13 <BODY BGCOLOR=
"#ffffff">
14 <H1>[IRCServices Coding] coding... (svcs
5)
</H1>
16 <A HREF=
"mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20coding...%20%28svcs%205%29&In-Reply-To="
17 TITLE=
"[IRCServices Coding] coding... (svcs 5)">achurch at achurch.org
19 <I>Sat Dec
15 10:
45:
50 PST
2001</I>
21 <LI>Previous message:
<A HREF=
"000019.html">[IRCServices Coding] Version
5 (feature request)
23 <LI>Next message:
<A HREF=
"000026.html">[IRCServices Coding] coding... (svcs
5)
25 <LI> <B>Messages sorted by:
</B>
26 <a href=
"date.html#25">[ date ]
</a>
27 <a href=
"thread.html#25">[ thread ]
</a>
28 <a href=
"subject.html#25">[ subject ]
</a>
29 <a href=
"author.html#25">[ author ]
</a>
36 ><i>For services
5:
38 </I>><i>I believe code like this (from operserv/main.c: do_killclones() )
40 </I>><i> if (match_usermask(clonemask, user) !=
0) {
41 </I>><i> char killreason[
32];
43 </I>><i> snprintf(killreason, sizeof(killreason),
44 </I>><i> "Cloning [%d]
", count);
45 </I>><i> kill_user(NULL, user-
>nick, killreason);
48 </I>><i>should exist in seperate functions like:
50 </I>><i>int kill_mask(const char *mask, const char *reason)
52 </I>><i> int count=
0;
53 </I>><i> User *user;
55 </I>><i> for (user = first_user(); user; user = next_user())
57 </I>><i> if (match_usermask(mask, user) !=
0)
59 </I>><i> char killreason[
512];
62 </I>><i> snprintf(killreason, sizeof(killreason),
63 </I>><i> (reason == NULL ?
"Cloning [%d]
" : reason),
65 </I>><i> kill_user(NULL, user-
>nick, killreason);
69 </I>><i> return(count);
72 </I>><i>3rd party modules should not use their own code for things like this, sin
74 </I>><i>it exists allready.
76 </I>><i><<V13
>>
77 </I>><i>------------------------------------------------------------------
78 </I>><i>To unsubscribe or change your subscription options, visit:
79 </I>><i><A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
</A>
82 <A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">achurch at achurch.org
</A>
83 <A HREF=
"http://achurch.org/">http://achurch.org/
</A>
91 <LI>Previous message:
<A HREF=
"000019.html">[IRCServices Coding] Version
5 (feature request)
93 <LI>Next message:
<A HREF=
"000026.html">[IRCServices Coding] coding... (svcs
5)
95 <LI> <B>Messages sorted by:
</B>
96 <a href=
"date.html#25">[ date ]
</a>
97 <a href=
"thread.html#25">[ thread ]
</a>
98 <a href=
"subject.html#25">[ subject ]
</a>
99 <a href=
"author.html#25">[ author ]
</a>