1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
4 <TITLE> [IRCServices]
5.1 InspIRCd protocol
6 <LINK REL=
"Index" HREF=
"index.html" >
7 <LINK REL=
"made" HREF=
"mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%205.1%20InspIRCd%20protocol&In-Reply-To=46e5d252.50601%40msgid.achurch.org">
8 <META NAME=
"robots" CONTENT=
"index,nofollow">
9 <META http-equiv=
"Content-Type" content=
"text/html; charset=us-ascii">
10 <LINK REL=
"Previous" HREF=
"005391.html">
11 <LINK REL=
"Next" HREF=
"005393.html">
13 <BODY BGCOLOR=
"#ffffff">
14 <H1>[IRCServices]
5.1 InspIRCd protocol
</H1>
16 <A HREF=
"mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%205.1%20InspIRCd%20protocol&In-Reply-To=46e5d252.50601%40msgid.achurch.org"
17 TITLE=
"[IRCServices] 5.1 InspIRCd protocol">caseyclaydon at fastmail.com.au
19 <I>Mon Sep
10 17:
58:
31 PDT
2007</I>
21 <LI>Previous message:
<A HREF=
"005391.html">[IRCServices]
5.1 InspIRCd protocol
23 <LI>Next message:
<A HREF=
"005393.html">[IRCServices]
5.1 InspIRCd protocol
25 <LI> <B>Messages sorted by:
</B>
26 <a href=
"date.html#5392">[ date ]
</a>
27 <a href=
"thread.html#5392">[ thread ]
</a>
28 <a href=
"subject.html#5392">[ subject ]
</a>
29 <a href=
"author.html#5392">[ author ]
</a>
34 <PRE>the patch command is not working for me
36 I made a text file and called it inspircd-patch.txt and
37 messages-patch.txt, and copied the patch txt files to the
38 ircservices-
5.1pre6 directory
40 I did patch -p
<inspircd/messages-patch.txt
42 [
<A HREF=
"http://lists.ircservices.za.net/mailman/listinfo/ircservices">casey at Vigor10
</A> ircservices-
5.1pre6]$ patch -p
<inspircd-patch.txt
43 patch: option requires an argument -- p
44 patch: Try `patch --help' for more information.
45 [
<A HREF=
"http://lists.ircservices.za.net/mailman/listinfo/ircservices">casey at Vigor10
</A> ircservices-
5.1pre6]$
49 I have this in the patch txt files
53 Index: modules/protocol/inspircd.c
54 ===================================================================
55 RCS file: /var/local/cvsroot/ircservices/modules/protocol/inspircd.c,v
56 retrieving revision
2.9
57 diff -u -r2.9 inspircd.c
58 --- modules/protocol/inspircd.c
3 Sep
2007 11:
26:
34 -
0000 2.9
59 +++ modules/protocol/inspircd.c
10 Sep
2007 12:
48:
07 -
0000
61 User *u = get_user(av[
2]);
63 clear_channel(c, CLEAR_BANS, u);
65 - do_cmode(source, ac, av);
66 + } else if (ac
>=
3) {
67 + char modestr[BUFSIZE];
68 + av[
1] = av[
0]; /* Remove the timestamp parameter */
69 + if (av[
2][
0] != '+'
&& av[
2][
0] != '-') {
70 + /* InspIRCd seems to omit the leading '+' when sending
71 + * initial modes for the channel */
72 + snprintf(modestr, sizeof(modestr),
"+%s
", av[
2]);
75 + do_cmode(source, ac-
1, av+
1);
81 protocol_name =
"InspIRCd
";
82 protocol_version =
"1.1+
";
83 - protocol_features = PF_SZLINE | PF_SVSJOIN | PF_MODETS_FIRST;
84 + protocol_features = PF_SZLINE | PF_SVSJOIN;
85 protocol_nickmax =
30;
87 if (!register_messages(inspircd_messages)) {
96 ===================================================================
97 RCS file: /var/local/cvsroot/ircservices/messages.c,v
98 retrieving revision
2.46
99 diff -u -r2.46 messages.c
100 --- messages.c
23 Aug
2007 04:
45:
42 -
0000 2.46
101 +++ messages.c
10 Sep
2007 14:
09:
47 -
0000
104 log(
"Source missing from JOIN message
");
106 - } else if (ac !=
1) {
107 + } else if (ac
< 1) {
110 do_join(source, ac, av);
119 >><i> where in inspircd.c do I put in the patch
122 </I>><i> Use the
"patch
" command to apply it. Save the message to a file (for
123 </I>><i> example
"file.txt
"), then go to the top Services source directory and
124 </I>><i> enter the command
"patch -p
<file.txt
" (make sure you give the proper
125 </I>><i> path to the file).
127 </I>><i> --Andrew Church
128 </I>><i> <A HREF=
"http://lists.ircservices.za.net/mailman/listinfo/ircservices">achurch at achurch.org
</A>
129 </I>><i> <A HREF=
"http://achurch.org/">http://achurch.org/
</A>
130 </I>><i> ------------------------------------------------------------------
131 </I>><i> To unsubscribe or change your subscription options, visit:
132 </I>><i> <A HREF=
"http://lists.ircservices.za.net/mailman/listinfo/ircservices">http://lists.ircservices.za.net/mailman/listinfo/ircservices
</A>
141 <LI>Previous message:
<A HREF=
"005391.html">[IRCServices]
5.1 InspIRCd protocol
143 <LI>Next message:
<A HREF=
"005393.html">[IRCServices]
5.1 InspIRCd protocol
145 <LI> <B>Messages sorted by:
</B>
146 <a href=
"date.html#5392">[ date ]
</a>
147 <a href=
"thread.html#5392">[ thread ]
</a>
148 <a href=
"subject.html#5392">[ subject ]
</a>
149 <a href=
"author.html#5392">[ author ]
</a>