]> jfr.im git - irc.git/blob - software/!RELEASES/ircservices/achurch.org/services/lists/ircservices/2007/005383.html
RELEASE -> !RELEASE
[irc.git] / software / !RELEASES / ircservices / achurch.org / services / lists / ircservices / 2007 / 005383.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=b19eae4e0709100507je98f094p371df5abf649fba7%40mail.gmail.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="005382.html">
11 <LINK REL="Next" HREF="005384.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=b19eae4e0709100507je98f094p371df5abf649fba7%40mail.gmail.com"
17 TITLE="[IRCServices] 5.1 InspIRCd protocol">achurch at achurch.org
18 </A><BR>
19 <I>Mon Sep 10 21:48:11 PDT 2007</I>
20 <P><UL>
21 <LI>Previous message: <A HREF="005382.html">[IRCServices] 5.1 InspIRCd protocol
22 </A></li>
23 <LI>Next message: <A HREF="005384.html">[IRCServices] 5.1 InspIRCd protocol
24 </A></li>
25 <LI> <B>Messages sorted by:</B>
26 <a href="date.html#5383">[ date ]</a>
27 <a href="thread.html#5383">[ thread ]</a>
28 <a href="subject.html#5383">[ subject ]</a>
29 <a href="author.html#5383">[ author ]</a>
30 </LI>
31 </UL>
32 <HR>
33 <!--beginarticle-->
34 <PRE>&gt;<i>Our MODE command does not take a timestamp parameter.
35 </I>&gt;<i>
36 </I>&gt;<i>FMODE does, but will reject any timestamp of 0.
37 </I>&gt;<i>
38 </I>&gt;<i>(basically, use MODE, but with no timestamp)
39 </I>
40 Hm. Not sure why it worked for me anyway, but try the following patch:
41
42 Index: modules/protocol/inspircd.c
43 ===================================================================
44 RCS file: /var/local/cvsroot/ircservices/modules/protocol/inspircd.c,v
45 retrieving revision 2.9
46 diff -u -r2.9 inspircd.c
47 --- modules/protocol/inspircd.c 3 Sep 2007 11:26:34 -0000 2.9
48 +++ modules/protocol/inspircd.c 10 Sep 2007 12:48:07 -0000
49 @@ -332,8 +332,16 @@
50 User *u = get_user(av[2]);
51 if (c &amp;&amp; u)
52 clear_channel(c, CLEAR_BANS, u);
53 - } else {
54 - do_cmode(source, ac, av);
55 + } else if (ac &gt;= 3) {
56 + char modestr[BUFSIZE];
57 + av[1] = av[0]; /* Remove the timestamp parameter */
58 + if (av[2][0] != '+' &amp;&amp; av[2][0] != '-') {
59 + /* InspIRCd seems to omit the leading '+' when sending
60 + * initial modes for the channel */
61 + snprintf(modestr, sizeof(modestr), &quot;+%s&quot;, av[2]);
62 + av[2] = modestr;
63 + }
64 + do_cmode(source, ac-1, av+1);
65 }
66 } else {
67 if (ac &lt; 2)
68 @@ -1030,7 +1038,7 @@
69 {
70 protocol_name = &quot;InspIRCd&quot;;
71 protocol_version = &quot;1.1+&quot;;
72 - protocol_features = PF_SZLINE | PF_SVSJOIN | PF_MODETS_FIRST;
73 + protocol_features = PF_SZLINE | PF_SVSJOIN;
74 protocol_nickmax = 30;
75
76 if (!register_messages(inspircd_messages)) {
77
78 --Andrew Church
79 <A HREF="http://lists.ircservices.za.net/mailman/listinfo/ircservices">achurch at achurch.org</A>
80 <A HREF="http://achurch.org/">http://achurch.org/</A>
81 </PRE>
82
83
84 <!--endarticle-->
85 <HR>
86 <P><UL>
87 <!--threads-->
88 <LI>Previous message: <A HREF="005382.html">[IRCServices] 5.1 InspIRCd protocol
89 </A></li>
90 <LI>Next message: <A HREF="005384.html">[IRCServices] 5.1 InspIRCd protocol
91 </A></li>
92 <LI> <B>Messages sorted by:</B>
93 <a href="date.html#5383">[ date ]</a>
94 <a href="thread.html#5383">[ thread ]</a>
95 <a href="subject.html#5383">[ subject ]</a>
96 <a href="author.html#5383">[ author ]</a>
97 </LI>
98 </UL>
99
100 </body></html>