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=46E5E837.3030300%40fastmail.com.au">
8 <META NAME=
"robots" CONTENT=
"index,nofollow">
9 <META http-equiv=
"Content-Type" content=
"text/html; charset=us-ascii">
10 <LINK REL=
"Previous" HREF=
"005392.html">
11 <LINK REL=
"Next" HREF=
"005394.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=46E5E837.3030300%40fastmail.com.au"
17 TITLE=
"[IRCServices] 5.1 InspIRCd protocol">achurch at achurch.org
19 <I>Tue Sep
11 10:
04:
27 PDT
2007</I>
21 <LI>Previous message:
<A HREF=
"005392.html">[IRCServices]
5.1 InspIRCd protocol
23 <LI>Next message:
<A HREF=
"005394.html">[IRCServices]
5.1 InspIRCd protocol
25 <LI> <B>Messages sorted by:
</B>
26 <a href=
"date.html#5393">[ date ]
</a>
27 <a href=
"thread.html#5393">[ thread ]
</a>
28 <a href=
"subject.html#5393">[ subject ]
</a>
29 <a href=
"author.html#5393">[ author ]
</a>
34 <PRE>Sorry--that should have been
"patch -p0
", not
"patch -p
".
37 <A HREF=
"http://lists.ircservices.za.net/mailman/listinfo/ircservices">achurch at achurch.org
</A>
38 <A HREF=
"http://achurch.org/">http://achurch.org/
</A>
40 ><i>the patch command is not working for me
42 </I>><i>I made a text file and called it inspircd-patch.txt and
43 </I>><i>messages-patch.txt, and copied the patch txt files to the
44 </I>><i>ircservices-
5.1pre6 directory
46 </I>><i>I did patch -p
<inspircd/messages-patch.txt
48 </I>><i>[
<A HREF=
"http://lists.ircservices.za.net/mailman/listinfo/ircservices">casey at Vigor10
</A> ircservices-
5.1pre6]$ patch -p
<inspircd-patch.txt
49 </I>><i>patch: option requires an argument -- p
50 </I>><i>patch: Try `patch --help' for more information.
51 </I>><i>[
<A HREF=
"http://lists.ircservices.za.net/mailman/listinfo/ircservices">casey at Vigor10
</A> ircservices-
5.1pre6]$
55 </I>><i>I have this in the patch txt files
59 </I>><i>Index: modules/protocol/inspircd.c
60 </I>><i>===================================================================
61 </I>><i>RCS file: /var/local/cvsroot/ircservices/modules/protocol/inspircd.c,v
62 </I>><i>retrieving revision
2.9
63 </I>><i>diff -u -r2.9 inspircd.c
64 </I>><i>--- modules/protocol/inspircd.c
3 Sep
2007 11:
26:
34 -
0000 2.9
65 </I>><i>+++ modules/protocol/inspircd.c
10 Sep
2007 12:
48:
07 -
0000
66 </I>><i>@@ -
332,
8 +
332,
16 @@
67 </I>><i>User *u = get_user(av[
2]);
68 </I>><i>if (c
&& u)
69 </I>><i>clear_channel(c, CLEAR_BANS, u);
71 </I>><i>- do_cmode(source, ac, av);
72 </I>><i>+ } else if (ac
>=
3) {
73 </I>><i>+ char modestr[BUFSIZE];
74 </I>><i>+ av[
1] = av[
0]; /* Remove the timestamp parameter */
75 </I>><i>+ if (av[
2][
0] != '+'
&& av[
2][
0] != '-') {
76 </I>><i>+ /* InspIRCd seems to omit the leading '+' when sending
77 </I>><i>+ * initial modes for the channel */
78 </I>><i>+ snprintf(modestr, sizeof(modestr),
"+%s
", av[
2]);
79 </I>><i>+ av[
2] = modestr;
81 </I>><i>+ do_cmode(source, ac-
1, av+
1);
84 </I>><i>if (ac
< 2)
85 </I>><i>@@ -
1030,
7 +
1038,
7 @@
87 </I>><i>protocol_name =
"InspIRCd
";
88 </I>><i>protocol_version =
"1.1+
";
89 </I>><i>- protocol_features = PF_SZLINE | PF_SVSJOIN | PF_MODETS_FIRST;
90 </I>><i>+ protocol_features = PF_SZLINE | PF_SVSJOIN;
91 </I>><i>protocol_nickmax =
30;
93 </I>><i>if (!register_messages(inspircd_messages)) {
101 </I>><i>Index: messages.c
102 </I>><i>===================================================================
103 </I>><i>RCS file: /var/local/cvsroot/ircservices/messages.c,v
104 </I>><i>retrieving revision
2.46
105 </I>><i>diff -u -r2.46 messages.c
106 </I>><i>--- messages.c
23 Aug
2007 04:
45:
42 -
0000 2.46
107 </I>><i>+++ messages.c
10 Sep
2007 14:
09:
47 -
0000
108 </I>><i>@@ -
75,
7 +
75,
7 @@
109 </I>><i>if (!*source) {
110 </I>><i>log(
"Source missing from JOIN message
");
112 </I>><i>- } else if (ac !=
1) {
113 </I>><i>+ } else if (ac
< 1) {
116 </I>><i>do_join(source, ac, av);
124 </I>><i>Andrew Church wrote:
125 </I>>>><i> where in inspircd.c do I put in the patch
128 </I>>><i> Use the
"patch
" command to apply it. Save the message to a file (for
129 </I>>><i> example
"file.txt
"), then go to the top Services source directory and
130 </I>>><i> enter the command
"patch -p
<file.txt
" (make sure you give the proper
131 </I>>><i> path to the file).
133 </I>>><i> --Andrew Church
134 </I>>><i> <A HREF=
"http://lists.ircservices.za.net/mailman/listinfo/ircservices">achurch at achurch.org
</A>
135 </I>>><i> <A HREF=
"http://achurch.org/">http://achurch.org/
</A>
136 </I>>><i> ------------------------------------------------------------------
137 </I>>><i> To unsubscribe or change your subscription options, visit:
138 </I>>><i> <A HREF=
"http://lists.ircservices.za.net/mailman/listinfo/ircservices">http://lists.ircservices.za.net/mailman/listinfo/ircservices
</A>
140 </I>><i>------------------------------------------------------------------
141 </I>><i>To unsubscribe or change your subscription options, visit:
142 </I>><i><A HREF=
"http://lists.ircservices.za.net/mailman/listinfo/ircservices">http://lists.ircservices.za.net/mailman/listinfo/ircservices
</A>
150 <LI>Previous message:
<A HREF=
"005392.html">[IRCServices]
5.1 InspIRCd protocol
152 <LI>Next message:
<A HREF=
"005394.html">[IRCServices]
5.1 InspIRCd protocol
154 <LI> <B>Messages sorted by:
</B>
155 <a href=
"date.html#5393">[ date ]
</a>
156 <a href=
"thread.html#5393">[ thread ]
</a>
157 <a href=
"subject.html#5393">[ subject ]
</a>
158 <a href=
"author.html#5393">[ author ]
</a>