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