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=4324efa5.16566%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=
"005041.html">
11 <LINK REL=
"Next" HREF=
"005032.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=4324efa5.16566%40msgid.achurch.org"
17 TITLE=
"[IRCServices] akick not setting channel ban">aragon at phat.za.net
19 <I>Mon Sep
12 14:
21:
05 PDT
2005</I>
21 <LI>Previous message:
<A HREF=
"005041.html">[IRCServices] akick not setting channel ban
23 <LI>Next message:
<A HREF=
"005032.html">[IRCServices] Config file splitting
25 <LI> <B>Messages sorted by:
</B>
26 <a href=
"date.html#5042">[ date ]
</a>
27 <a href=
"thread.html#5042">[ thread ]
</a>
28 <a href=
"subject.html#5042">[ subject ]
</a>
29 <a href=
"author.html#5042">[ author ]
</a>
34 <PRE>Agreed it could be a network desync. Thanks for the patch. Will apply it
35 and let you know the results.
39 |
<i> By Andrew Church
<<A HREF=
"http://lists.ircservices.za.net/mailman/listinfo/ircservices">achurch at achurch.org
</A>>
40 </I>|
<i> [
2005-
09-
12 05:
02 +
0200 ]
41 </I>><i> >I suspect that some of the irc servers in the network drop a ban
42 </I>><i> >silently, resulting in services having this ban on their list, which
43 </I>><i> >is desynched from the rest of the network in this case. I've seen
44 </I>><i> >similar situations with old hybrid servers and other services, but who
45 </I>><i> >knows..
47 </I>><i> That's an interesting possibility. To the original poster: try
48 </I>><i> applying the following patch to Services, then recompiling and restarting
49 </I>><i> in debug mode (ircservices -debug). When you see the bug happening, check
50 </I>><i> the logfile and see if the ban in question is listed. (Also, if you could
51 </I>><i> privately send me the full debug logfile for further analysis I'd
52 </I>><i> appreciate it.)
54 </I>><i> --Andrew Church
55 </I>><i> <A HREF=
"http://lists.ircservices.za.net/mailman/listinfo/ircservices">achurch at achurch.org
</A>
56 </I>><i> <A HREF=
"http://achurch.org/">http://achurch.org/
</A>
58 </I>><i> ---------------------------------------------------------------------------
60 </I>><i> Index: channels.c
61 </I>><i> ===================================================================
62 </I>><i> RCS file: /var/local/cvsroot/ircservices/channels.c,v
63 </I>><i> retrieving revision
2.43.2.1
64 </I>><i> diff -u -r2.43
.2.1 channels.c
65 </I>><i> --- channels.c
6 Jan
2005 17:
15:
11 -
0000 2.43.2.1
66 </I>><i> +++ channels.c
12 Sep
2005 03:
01:
04 -
0000
67 </I>><i> @@ -
192,
22 +
192,
33 @@
69 </I>><i> t = strchr(ban, '!');
71 </I>><i> + if (debug)
72 </I>><i> + log(
"find_ban([%s],[%s])
", chan-
>name, ban);
73 </I>><i> ARRAY_FOREACH (i, chan-
>bans) {
74 </I>><i> + if (debug)
75 </I>><i> + log(
"... checking [%s]
", chan-
>bans[i]);
76 </I>><i> s = strchr(chan-
>bans[i], '!');
77 </I>><i> if (s
&& t) {
78 </I>><i> if (s-(chan-
>bans[i]) == t-ban
79 </I>><i> && irc_strnicmp(chan-
>bans[i], ban, s-(chan-
>bans[i])) ==
0
80 </I>><i> && stricmp(s+
1, t+
1) ==
0
82 </I>><i> + if (debug)
83 </I>><i> + log(
"... found!
");
86 </I>><i> } else if (!s
&& !t) {
87 </I>><i> /* Bans without '!' should be impossible; just
88 </I>><i> * do a case-insensitive compare */
89 </I>><i> - if (stricmp(chan-
>bans[i], ban) ==
0)
90 </I>><i> + if (stricmp(chan-
>bans[i], ban) ==
0) {
91 </I>><i> + if (debug)
92 </I>><i> + log(
"... found!
");
97 </I>><i> + if (debug)
98 </I>><i> + log(
"... NOT found
");
99 </I>><i> return -
1;
102 </I>><i> ------------------------------------------------------------------
103 </I>><i> To unsubscribe or change your subscription options, visit:
104 </I>><i> <A HREF=
"http://lists.ircservices.za.net/mailman/listinfo/ircservices">http://lists.ircservices.za.net/mailman/listinfo/ircservices
</A>
112 <LI>Previous message:
<A HREF=
"005041.html">[IRCServices] akick not setting channel ban
114 <LI>Next message:
<A HREF=
"005032.html">[IRCServices] Config file splitting
116 <LI> <B>Messages sorted by:
</B>
117 <a href=
"date.html#5042">[ date ]
</a>
118 <a href=
"thread.html#5042">[ thread ]
</a>
119 <a href=
"subject.html#5042">[ subject ]
</a>
120 <a href=
"author.html#5042">[ author ]
</a>