1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
4 <TITLE> [IRCServices Coding]
5.1 Suggestion: Aliases.
6 <LINK REL=
"Index" HREF=
"index.html" >
7 <LINK REL=
"made" HREF=
"mailto:ircservices-coding%40ircservices.esper.net?Subject=%5BIRCServices%20Coding%5D%205.1%20Suggestion%3A%20Aliases.&In-Reply-To=43D3594E.5050308%40frostycoolslug.com">
8 <META NAME=
"robots" CONTENT=
"index,nofollow">
9 <META http-equiv=
"Content-Type" content=
"text/html; charset=us-ascii">
10 <LINK REL=
"Previous" HREF=
"003210.html">
11 <LINK REL=
"Next" HREF=
"003212.html">
13 <BODY BGCOLOR=
"#ffffff">
14 <H1>[IRCServices Coding]
5.1 Suggestion: Aliases.
</H1>
16 <A HREF=
"mailto:ircservices-coding%40ircservices.esper.net?Subject=%5BIRCServices%20Coding%5D%205.1%20Suggestion%3A%20Aliases.&In-Reply-To=43D3594E.5050308%40frostycoolslug.com"
17 TITLE=
"[IRCServices Coding] 5.1 Suggestion: Aliases.">achurch at achurch.org
19 <I>Sun Jan
22 20:
21:
01 PST
2006</I>
21 <LI>Previous message:
<A HREF=
"003210.html">[IRCServices Coding]
5.1 Suggestion: Aliases.
23 <LI>Next message:
<A HREF=
"003212.html">[IRCServices Coding]
5.1 Suggestion: Aliases.
25 <LI> <B>Messages sorted by:
</B>
26 <a href=
"date.html#3211">[ date ]
</a>
27 <a href=
"thread.html#3211">[ thread ]
</a>
28 <a href=
"subject.html#3211">[ subject ]
</a>
29 <a href=
"author.html#3211">[ author ]
</a>
34 <PRE>><i>On chatspike, i've modified a few files for 'convieniance' purposes,
35 </I>><i>adding things like id -
> handle_identify and what not, what would be
36 </I>><i>nice, if it were possible to configure some of these in the
37 </I>><i>configuration file, rather than having to modifying the core :)
39 You could just make a module with something like
41 extern char *s_NickServ;
42 int do_privmsg(const char *source, const char *target, char *buf)
44 if (irc_stricmp(target, s_NickServ) ==
0
45 && stricmp(buf,
"ID
",
2)
46 && isspace(buf[
2]
48 memmove(buf+
8, buf+
2, strlen(buf+
8));
49 memcpy(buf,
"IDENTIFY
",
8);
56 add_callback_pri(NULL,
"m_privmsg
", do_privmsg, CBPRI_MAX); // called first
60 which is rather kludgey in that it relies on `buf' being writeable and
61 having room for
6 more bytes (which should always be true), but it doesn't
62 require modifying the core. I'll think about a more general solution,
66 <A HREF=
"http://lists.ircservices.za.net/mailman/listinfo/ircservices-coding">achurch at achurch.org
</A>
67 <A HREF=
"http://achurch.org/">http://achurch.org/
</A>
75 <LI>Previous message:
<A HREF=
"003210.html">[IRCServices Coding]
5.1 Suggestion: Aliases.
77 <LI>Next message:
<A HREF=
"003212.html">[IRCServices Coding]
5.1 Suggestion: Aliases.
79 <LI> <B>Messages sorted by:
</B>
80 <a href=
"date.html#3211">[ date ]
</a>
81 <a href=
"thread.html#3211">[ thread ]
</a>
82 <a href=
"subject.html#3211">[ subject ]
</a>
83 <a href=
"author.html#3211">[ author ]
</a>