]> jfr.im git - irc.git/blob - software/!RELEASES/ircservices/achurch.org/services/lists/ircservices/2007/005394.html
RELEASE -> !RELEASE
[irc.git] / software / !RELEASES / ircservices / achurch.org / services / lists / ircservices / 2007 / 005394.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2 <HTML>
3 <HEAD>
4 <TITLE> [IRCServices] 5.1 InspIRCd protocol
5 </TITLE>
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=46e5e9ee.55553%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="005393.html">
11 <LINK REL="Next" HREF="005395.html">
12 </HEAD>
13 <BODY BGCOLOR="#ffffff">
14 <H1>[IRCServices] 5.1 InspIRCd protocol</H1>
15 <B>Casey</B>
16 <A HREF="mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%205.1%20InspIRCd%20protocol&In-Reply-To=46e5e9ee.55553%40msgid.achurch.org"
17 TITLE="[IRCServices] 5.1 InspIRCd protocol">caseyclaydon at fastmail.com.au
18 </A><BR>
19 <I>Mon Sep 10 18:28:36 PDT 2007</I>
20 <P><UL>
21 <LI>Previous message: <A HREF="005393.html">[IRCServices] 5.1 InspIRCd protocol
22 </A></li>
23 <LI>Next message: <A HREF="005395.html">[IRCServices] 5.1 InspIRCd protocol
24 </A></li>
25 <LI> <B>Messages sorted by:</B>
26 <a href="date.html#5394">[ date ]</a>
27 <a href="thread.html#5394">[ thread ]</a>
28 <a href="subject.html#5394">[ subject ]</a>
29 <a href="author.html#5394">[ author ]</a>
30 </LI>
31 </UL>
32 <HR>
33 <!--beginarticle-->
34 <PRE>getting patch unexpectedly ends in middle of line
35
36
37 [<A HREF="http://lists.ircservices.za.net/mailman/listinfo/ircservices">root at Vigor10</A> ircservices-5.1pre6]# patch -p0 &lt;inspircd-patch.txt
38 patching file modules/protocol/inspircd.c
39 patch unexpectedly ends in middle of line
40 Hunk #2 succeeded at 1038 with fuzz 1.
41 [<A HREF="http://lists.ircservices.za.net/mailman/listinfo/ircservices">root at Vigor10</A> ircservices-5.1pre6]# patch -p0 &lt;messages-patch.txt
42 patching file messages.c
43 patch unexpectedly ends in middle of line
44 Hunk #1 succeeded at 75 with fuzz 1.
45 [<A HREF="http://lists.ircservices.za.net/mailman/listinfo/ircservices">root at Vigor10</A> ircservices-5.1pre6]#
46
47
48
49 Andrew Church wrote:
50 &gt;<i> Sorry--that should have been &quot;patch -p0&quot;, not &quot;patch -p&quot;.
51 </I>&gt;<i>
52 </I>&gt;<i> --Andrew Church
53 </I>&gt;<i> <A HREF="http://lists.ircservices.za.net/mailman/listinfo/ircservices">achurch at achurch.org</A>
54 </I>&gt;<i> <A HREF="http://achurch.org/">http://achurch.org/</A>
55 </I>&gt;<i>
56 </I>&gt;<i>
57 </I>&gt;&gt;<i> the patch command is not working for me
58 </I>&gt;&gt;<i>
59 </I>&gt;&gt;<i> I made a text file and called it inspircd-patch.txt and
60 </I>&gt;&gt;<i> messages-patch.txt, and copied the patch txt files to the
61 </I>&gt;&gt;<i> ircservices-5.1pre6 directory
62 </I>&gt;&gt;<i>
63 </I>&gt;&gt;<i> I did patch -p &lt;inspircd/messages-patch.txt
64 </I>&gt;&gt;<i>
65 </I>&gt;&gt;<i> [<A HREF="http://lists.ircservices.za.net/mailman/listinfo/ircservices">casey at Vigor10</A> ircservices-5.1pre6]$ patch -p &lt;inspircd-patch.txt
66 </I>&gt;&gt;<i> patch: option requires an argument -- p
67 </I>&gt;&gt;<i> patch: Try `patch --help' for more information.
68 </I>&gt;&gt;<i> [<A HREF="http://lists.ircservices.za.net/mailman/listinfo/ircservices">casey at Vigor10</A> ircservices-5.1pre6]$
69 </I>&gt;&gt;<i>
70 </I>&gt;&gt;<i>
71 </I>&gt;&gt;<i>
72 </I>&gt;&gt;<i> I have this in the patch txt files
73 </I>&gt;&gt;<i>
74 </I>&gt;&gt;<i>
75 </I>&gt;&gt;<i>
76 </I>&gt;&gt;<i> Index: modules/protocol/inspircd.c
77 </I>&gt;&gt;<i> ===================================================================
78 </I>&gt;&gt;<i> RCS file: /var/local/cvsroot/ircservices/modules/protocol/inspircd.c,v
79 </I>&gt;&gt;<i> retrieving revision 2.9
80 </I>&gt;&gt;<i> diff -u -r2.9 inspircd.c
81 </I>&gt;&gt;<i> --- modules/protocol/inspircd.c 3 Sep 2007 11:26:34 -0000 2.9
82 </I>&gt;&gt;<i> +++ modules/protocol/inspircd.c 10 Sep 2007 12:48:07 -0000
83 </I>&gt;&gt;<i> @@ -332,8 +332,16 @@
84 </I>&gt;&gt;<i> User *u = get_user(av[2]);
85 </I>&gt;&gt;<i> if (c &amp;&amp; u)
86 </I>&gt;&gt;<i> clear_channel(c, CLEAR_BANS, u);
87 </I>&gt;&gt;<i> - } else {
88 </I>&gt;&gt;<i> - do_cmode(source, ac, av);
89 </I>&gt;&gt;<i> + } else if (ac &gt;= 3) {
90 </I>&gt;&gt;<i> + char modestr[BUFSIZE];
91 </I>&gt;&gt;<i> + av[1] = av[0]; /* Remove the timestamp parameter */
92 </I>&gt;&gt;<i> + if (av[2][0] != '+' &amp;&amp; av[2][0] != '-') {
93 </I>&gt;&gt;<i> + /* InspIRCd seems to omit the leading '+' when sending
94 </I>&gt;&gt;<i> + * initial modes for the channel */
95 </I>&gt;&gt;<i> + snprintf(modestr, sizeof(modestr), &quot;+%s&quot;, av[2]);
96 </I>&gt;&gt;<i> + av[2] = modestr;
97 </I>&gt;&gt;<i> + }
98 </I>&gt;&gt;<i> + do_cmode(source, ac-1, av+1);
99 </I>&gt;&gt;<i> }
100 </I>&gt;&gt;<i> } else {
101 </I>&gt;&gt;<i> if (ac &lt; 2)
102 </I>&gt;&gt;<i> @@ -1030,7 +1038,7 @@
103 </I>&gt;&gt;<i> {
104 </I>&gt;&gt;<i> protocol_name = &quot;InspIRCd&quot;;
105 </I>&gt;&gt;<i> protocol_version = &quot;1.1+&quot;;
106 </I>&gt;&gt;<i> - protocol_features = PF_SZLINE | PF_SVSJOIN | PF_MODETS_FIRST;
107 </I>&gt;&gt;<i> + protocol_features = PF_SZLINE | PF_SVSJOIN;
108 </I>&gt;&gt;<i> protocol_nickmax = 30;
109 </I>&gt;&gt;<i>
110 </I>&gt;&gt;<i> if (!register_messages(inspircd_messages)) {
111 </I>&gt;&gt;<i>
112 </I>&gt;&gt;<i>
113 </I>&gt;&gt;<i>
114 </I>&gt;&gt;<i>
115 </I>&gt;&gt;<i>
116 </I>&gt;&gt;<i>
117 </I>&gt;&gt;<i>
118 </I>&gt;&gt;<i> Index: messages.c
119 </I>&gt;&gt;<i> ===================================================================
120 </I>&gt;&gt;<i> RCS file: /var/local/cvsroot/ircservices/messages.c,v
121 </I>&gt;&gt;<i> retrieving revision 2.46
122 </I>&gt;&gt;<i> diff -u -r2.46 messages.c
123 </I>&gt;&gt;<i> --- messages.c 23 Aug 2007 04:45:42 -0000 2.46
124 </I>&gt;&gt;<i> +++ messages.c 10 Sep 2007 14:09:47 -0000
125 </I>&gt;&gt;<i> @@ -75,7 +75,7 @@
126 </I>&gt;&gt;<i> if (!*source) {
127 </I>&gt;&gt;<i> log(&quot;Source missing from JOIN message&quot;);
128 </I>&gt;&gt;<i> return;
129 </I>&gt;&gt;<i> - } else if (ac != 1) {
130 </I>&gt;&gt;<i> + } else if (ac &lt; 1) {
131 </I>&gt;&gt;<i> return;
132 </I>&gt;&gt;<i> }
133 </I>&gt;&gt;<i> do_join(source, ac, av);
134 </I>&gt;&gt;<i>
135 </I>&gt;&gt;<i>
136 </I>&gt;&gt;<i>
137 </I>&gt;&gt;<i>
138 </I>&gt;&gt;<i>
139 </I>&gt;&gt;<i>
140 </I>&gt;&gt;<i>
141 </I>&gt;&gt;<i> Andrew Church wrote:
142 </I>&gt;&gt;<i>
143 </I>&gt;&gt;&gt;&gt;<i> where in inspircd.c do I put in the patch
144 </I>&gt;&gt;&gt;&gt;<i>
145 </I>&gt;&gt;&gt;&gt;<i>
146 </I>&gt;&gt;&gt;<i> Use the &quot;patch&quot; command to apply it. Save the message to a file (for
147 </I>&gt;&gt;&gt;<i> example &quot;file.txt&quot;), then go to the top Services source directory and
148 </I>&gt;&gt;&gt;<i> enter the command &quot;patch -p &lt;file.txt&quot; (make sure you give the proper
149 </I>&gt;&gt;&gt;<i> path to the file).
150 </I>&gt;&gt;&gt;<i>
151 </I>&gt;&gt;&gt;<i> --Andrew Church
152 </I>&gt;&gt;&gt;<i> <A HREF="http://lists.ircservices.za.net/mailman/listinfo/ircservices">achurch at achurch.org</A>
153 </I>&gt;&gt;&gt;<i> <A HREF="http://achurch.org/">http://achurch.org/</A>
154 </I>&gt;&gt;&gt;<i> ------------------------------------------------------------------
155 </I>&gt;&gt;&gt;<i> To unsubscribe or change your subscription options, visit:
156 </I>&gt;&gt;&gt;<i> <A HREF="http://lists.ircservices.za.net/mailman/listinfo/ircservices">http://lists.ircservices.za.net/mailman/listinfo/ircservices</A>
157 </I>&gt;&gt;&gt;<i>
158 </I>&gt;&gt;&gt;<i>
159 </I>&gt;&gt;<i> ------------------------------------------------------------------
160 </I>&gt;&gt;<i> To unsubscribe or change your subscription options, visit:
161 </I>&gt;&gt;<i> <A HREF="http://lists.ircservices.za.net/mailman/listinfo/ircservices">http://lists.ircservices.za.net/mailman/listinfo/ircservices</A>
162 </I>&gt;&gt;<i>
163 </I>&gt;<i> ------------------------------------------------------------------
164 </I>&gt;<i> To unsubscribe or change your subscription options, visit:
165 </I>&gt;<i> <A HREF="http://lists.ircservices.za.net/mailman/listinfo/ircservices">http://lists.ircservices.za.net/mailman/listinfo/ircservices</A>
166 </I>&gt;<i>
167 </I></PRE>
168
169
170 <!--endarticle-->
171 <HR>
172 <P><UL>
173 <!--threads-->
174 <LI>Previous message: <A HREF="005393.html">[IRCServices] 5.1 InspIRCd protocol
175 </A></li>
176 <LI>Next message: <A HREF="005395.html">[IRCServices] 5.1 InspIRCd protocol
177 </A></li>
178 <LI> <B>Messages sorted by:</B>
179 <a href="date.html#5394">[ date ]</a>
180 <a href="thread.html#5394">[ thread ]</a>
181 <a href="subject.html#5394">[ subject ]</a>
182 <a href="author.html#5394">[ author ]</a>
183 </LI>
184 </UL>
185
186 </body></html>