1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
4 <TITLE> [IRCServices Coding] A bug i think...
6 <LINK REL=
"Index" HREF=
"index.html" >
7 <LINK REL=
"made" HREF=
"mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20A%20bug%20i%20think...&In-Reply-To=">
8 <META NAME=
"robots" CONTENT=
"index,nofollow">
9 <META http-equiv=
"Content-Type" content=
"text/html; charset=us-ascii">
10 <LINK REL=
"Previous" HREF=
"000069.html">
11 <LINK REL=
"Next" HREF=
"000075.html">
13 <BODY BGCOLOR=
"#ffffff">
14 <H1>[IRCServices Coding] A bug i think...
</H1>
16 <A HREF=
"mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20A%20bug%20i%20think...&In-Reply-To="
17 TITLE=
"[IRCServices Coding] A bug i think...">achurch at achurch.org
19 <I>Wed Dec
26 10:
30:
20 PST
2001</I>
21 <LI>Previous message:
<A HREF=
"000069.html">[IRCServices Coding] Services
5.0 alpha
9 released
23 <LI>Next message:
<A HREF=
"000075.html">[IRCServices Coding] Services
5.0 alpha
9 released
25 <LI> <B>Messages sorted by:
</B>
26 <a href=
"date.html#74">[ date ]
</a>
27 <a href=
"thread.html#74">[ thread ]
</a>
28 <a href=
"subject.html#74">[ subject ]
</a>
29 <a href=
"author.html#74">[ author ]
</a>
34 <PRE>><i>I was playing with alpha8 last night, and discovered this and wasn't
35 </I>><i>quite sure if it is whats supposed to happen. The session limit was
36 </I>><i>set two
3 and i had one client loaded, Ron885, and the other one
37 </I>><i>connecting, Ron885_...
39 ><i>it seems as if the session list gets messed up... because afterwards i
40 </I>><i>had one client connected and did /os session view and it said
3 of
3
41 </I>><i>when there was only one connected...
43 This is because the session/exception callback gets called before the
44 S-line one, leaving
"ghost
" users in the session count. Fixed, thanks.
45 Patch is as follows (not tested):
47 --- modules/operserv/sessions.c
24 Dec
2001 13:
20:
09 -
0000 2.30
48 +++ modules/operserv/sessions.c
26 Dec
2001 01:
27:
15 -
0000
53 - if (!add_callback(NULL,
"user check
", check_sessions)
54 + /* Add user check callback at priority -
10 so it runs after all the
55 + * autokill/S-line/whatever checks (otherwise we get users added to
56 + * sessions and then killed by S-lines, leaving the session count
57 + * jacked up). FIXME: we really really need to document places where
58 + * we use callback priorities.
60 + if (!add_callback_pri(NULL,
"user check
", check_sessions, -
10)
61 || !add_callback(NULL,
"user delete
", remove_session)
62 || !add_callback(NULL,
"save data
", do_save_data)
63 || !add_callback(NULL,
"expire
", expire_exceptions)
66 <A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">achurch at achurch.org
</A>
67 <A HREF=
"http://achurch.org/">http://achurch.org/
</A>
75 <LI>Previous message:
<A HREF=
"000069.html">[IRCServices Coding] Services
5.0 alpha
9 released
77 <LI>Next message:
<A HREF=
"000075.html">[IRCServices Coding] Services
5.0 alpha
9 released
79 <LI> <B>Messages sorted by:
</B>
80 <a href=
"date.html#74">[ date ]
</a>
81 <a href=
"thread.html#74">[ thread ]
</a>
82 <a href=
"subject.html#74">[ subject ]
</a>
83 <a href=
"author.html#74">[ author ]
</a>