1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
4 <TITLE> [IRCServices Coding] Re: Bug or misunderstood ?
6 <LINK REL=
"Index" HREF=
"index.html" >
7 <LINK REL=
"made" HREF=
"mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20Re%3A%20Bug%20or%20misunderstood%20%3F&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=
"002801.html">
11 <LINK REL=
"Next" HREF=
"002225.html">
13 <BODY BGCOLOR=
"#ffffff">
14 <H1>[IRCServices Coding] Re: Bug or misunderstood ?
</H1>
16 <A HREF=
"mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20Re%3A%20Bug%20or%20misunderstood%20%3F&In-Reply-To="
17 TITLE=
"[IRCServices Coding] Re: Bug or misunderstood ?">saman at alkol.org
19 <I>Fri Oct
17 04:
53:
04 PDT
2003</I>
21 <LI>Previous message:
<A HREF=
"002801.html">[IRCServices Coding] Bug or misunderstood ?
23 <LI>Next message:
<A HREF=
"002225.html">[IRCServices Coding] Re: Akill problem in
5.0.22
25 <LI> <B>Messages sorted by:
</B>
26 <a href=
"date.html#2778">[ date ]
</a>
27 <a href=
"thread.html#2778">[ thread ]
</a>
28 <a href=
"subject.html#2778">[ subject ]
</a>
29 <a href=
"author.html#2778">[ author ]
</a>
34 <PRE>Also it does not update last_used time on +a flag.
39 edit /modules/chanserv/check.c
42 -------------------------------------------------------------------------
43 local_set_cumodes(c, '+', res
& ~modes, user-
>nick);
44 -------------------------------------------------------------------------
46 ------------------------------------------------------------------------
47 int16 cumode_q = mode_char_to_flag('q',MODE_CHANUSER);
48 int16 cumode_a = mode_char_to_flag('a',MODE_CHANUSER);
50 if ((res
& ~modes)
& cumode_q) {
51 ci-
>last_used = time(NULL);
55 if ((res
& ~modes)
& cumode_a) {
56 ci-
>last_used = time(NULL);
59 -------------------------------------------------------------------------
60 save and compile and run and enjoy :)
61 -------------------------------------------------------------------------
65 ----- Original Message -----
66 From:
"|SaMaN|
" <<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">saman at alkol.org
</A>>
67 To:
<<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">IRCServices-Coding at ircservices.za.net
</A>>
68 Sent: Friday, October
17,
2003 1:
07 PM
69 Subject: Bug or misunderstood ?
72 ><i> Im using unreal ircd. When channel is empty and if channel owner joins
73 </I>><i> his/her registered channel it does
74 </I>><i> (ChanServ sets mode: +ntrq nick) but when channel is not empty and if
75 </I>><i> channel owner joins his/her registered channel it does (ChanServ sets
77 ><i> +oq nick nick). As you see on the first one there is no +o and because of
78 </I>><i> this chanserv does not update the last_used time because chanserv is set
80 ><i> update last_used time with +o (CUMODE_o) so channels drop while channel
81 </I>><i> owners use them. Is this a bug or my misunderstood ?
83 </I>><i> ######################################################
84 </I>><i> modules/chanserv/check.c
86 </I>><i> void check_chan_user_modes(const char *source, struct c_userlist *u,
87 </I>><i> Channel *c, int32 oldmodes)
89 </I>><i> if ((res
& ~modes)
& CUMODE_o) {
90 </I>><i> ci-
>last_used = time(NULL);
91 </I>><i> put_channelinfo(ci);
94 </I>><i> ######################################################
107 <LI>Previous message:
<A HREF=
"002801.html">[IRCServices Coding] Bug or misunderstood ?
109 <LI>Next message:
<A HREF=
"002225.html">[IRCServices Coding] Re: Akill problem in
5.0.22
111 <LI> <B>Messages sorted by:
</B>
112 <a href=
"date.html#2778">[ date ]
</a>
113 <a href=
"thread.html#2778">[ thread ]
</a>
114 <a href=
"subject.html#2778">[ subject ]
</a>
115 <a href=
"author.html#2778">[ author ]
</a>