1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
4 <TITLE> [IRCServices] akick not setting channel ban
6 <LINK REL=
"Index" HREF=
"index.html" >
7 <LINK REL=
"made" HREF=
"mailto:ircservices%40ircservices.esper.net?Subject=%5BIRCServices%5D%20akick%20not%20setting%20channel%20ban&In-Reply-To=ce6d53600509111444a3684ab%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=
"005040.html">
11 <LINK REL=
"Next" HREF=
"005042.html">
13 <BODY BGCOLOR=
"#ffffff">
14 <H1>[IRCServices] akick not setting channel ban
</H1>
16 <A HREF=
"mailto:ircservices%40ircservices.esper.net?Subject=%5BIRCServices%5D%20akick%20not%20setting%20channel%20ban&In-Reply-To=ce6d53600509111444a3684ab%40mail.gmail.com"
17 TITLE=
"[IRCServices] akick not setting channel ban">achurch at achurch.org
19 <I>Mon Sep
12 11:
51:
18 PDT
2005</I>
21 <LI>Previous message:
<A HREF=
"005040.html">[IRCServices] akick not setting channel ban
23 <LI>Next message:
<A HREF=
"005042.html">[IRCServices] akick not setting channel ban
25 <LI> <B>Messages sorted by:
</B>
26 <a href=
"date.html#5041">[ date ]
</a>
27 <a href=
"thread.html#5041">[ thread ]
</a>
28 <a href=
"subject.html#5041">[ subject ]
</a>
29 <a href=
"author.html#5041">[ author ]
</a>
34 <PRE>><i>I suspect that some of the irc servers in the network drop a ban
35 </I>><i>silently, resulting in services having this ban on their list, which
36 </I>><i>is desynched from the rest of the network in this case. I've seen
37 </I>><i>similar situations with old hybrid servers and other services, but who
40 That's an interesting possibility. To the original poster: try
41 applying the following patch to Services, then recompiling and restarting
42 in debug mode (ircservices -debug). When you see the bug happening, check
43 the logfile and see if the ban in question is listed. (Also, if you could
44 privately send me the full debug logfile for further analysis I'd
48 <A HREF=
"http://lists.ircservices.za.net/mailman/listinfo/ircservices">achurch at achurch.org
</A>
49 <A HREF=
"http://achurch.org/">http://achurch.org/
</A>
51 ---------------------------------------------------------------------------
54 ===================================================================
55 RCS file: /var/local/cvsroot/ircservices/channels.c,v
56 retrieving revision
2.43.2.1
57 diff -u -r2.43
.2.1 channels.c
58 --- channels.c
6 Jan
2005 17:
15:
11 -
0000 2.43.2.1
59 +++ channels.c
12 Sep
2005 03:
01:
04 -
0000
65 + log(
"find_ban([%s],[%s])
", chan-
>name, ban);
66 ARRAY_FOREACH (i, chan-
>bans) {
68 + log(
"... checking [%s]
", chan-
>bans[i]);
69 s = strchr(chan-
>bans[i], '!');
71 if (s-(chan-
>bans[i]) == t-ban
72 && irc_strnicmp(chan-
>bans[i], ban, s-(chan-
>bans[i])) ==
0
73 && stricmp(s+
1, t+
1) ==
0
76 + log(
"... found!
");
79 } else if (!s
&& !t) {
80 /* Bans without '!' should be impossible; just
81 * do a case-insensitive compare */
82 - if (stricmp(chan-
>bans[i], ban) ==
0)
83 + if (stricmp(chan-
>bans[i], ban) ==
0) {
85 + log(
"... found!
");
91 + log(
"... NOT found
");
103 <LI>Previous message:
<A HREF=
"005040.html">[IRCServices] akick not setting channel ban
105 <LI>Next message:
<A HREF=
"005042.html">[IRCServices] akick not setting channel ban
107 <LI> <B>Messages sorted by:
</B>
108 <a href=
"date.html#5041">[ date ]
</a>
109 <a href=
"thread.html#5041">[ thread ]
</a>
110 <a href=
"subject.html#5041">[ subject ]
</a>
111 <a href=
"author.html#5041">[ author ]
</a>