]> jfr.im git - irc.git/blob - software/!RELEASES/ircservices/achurch.org/services/lists/ircservices-coding/2003/002778.html
RELEASE -> !RELEASE
[irc.git] / software / !RELEASES / ircservices / achurch.org / services / lists / ircservices-coding / 2003 / 002778.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2 <HTML>
3 <HEAD>
4 <TITLE> [IRCServices Coding] Re: Bug or misunderstood ?
5 </TITLE>
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">
12 </HEAD>
13 <BODY BGCOLOR="#ffffff">
14 <H1>[IRCServices Coding] Re: Bug or misunderstood ?</H1>
15 <B>|SaMaN|</B>
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
18 </A><BR>
19 <I>Fri Oct 17 04:53:04 PDT 2003</I>
20 <P><UL>
21 <LI>Previous message: <A HREF="002801.html">[IRCServices Coding] Bug or misunderstood ?
22 </A></li>
23 <LI>Next message: <A HREF="002225.html">[IRCServices Coding] Re: Akill problem in 5.0.22
24 </A></li>
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>
30 </LI>
31 </UL>
32 <HR>
33 <!--beginarticle-->
34 <PRE>Also it does not update last_used time on +a flag.
35
36 Temporary fix
37 ---------------
38
39 edit /modules/chanserv/check.c
40
41 find line
42 -------------------------------------------------------------------------
43 local_set_cumodes(c, '+', res &amp; ~modes, user-&gt;nick);
44 -------------------------------------------------------------------------
45 add below
46 ------------------------------------------------------------------------
47 int16 cumode_q = mode_char_to_flag('q',MODE_CHANUSER);
48 int16 cumode_a = mode_char_to_flag('a',MODE_CHANUSER);
49
50 if ((res &amp; ~modes) &amp; cumode_q) {
51 ci-&gt;last_used = time(NULL);
52 put_channelinfo(ci);
53 }
54
55 if ((res &amp; ~modes) &amp; cumode_a) {
56 ci-&gt;last_used = time(NULL);
57 put_channelinfo(ci);
58 }
59 -------------------------------------------------------------------------
60 save and compile and run and enjoy :)
61 -------------------------------------------------------------------------
62
63 |<i>SaMaN|
64 </I>
65 ----- Original Message -----
66 From: &quot;|SaMaN|&quot; &lt;<A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">saman at alkol.org</A>&gt;
67 To: &lt;<A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">IRCServices-Coding at ircservices.za.net</A>&gt;
68 Sent: Friday, October 17, 2003 1:07 PM
69 Subject: Bug or misunderstood ?
70
71
72 &gt;<i> Im using unreal ircd. When channel is empty and if channel owner joins
73 </I>&gt;<i> his/her registered channel it does
74 </I>&gt;<i> (ChanServ sets mode: +ntrq nick) but when channel is not empty and if
75 </I>&gt;<i> channel owner joins his/her registered channel it does (ChanServ sets
76 </I>mode:
77 &gt;<i> +oq nick nick). As you see on the first one there is no +o and because of
78 </I>&gt;<i> this chanserv does not update the last_used time because chanserv is set
79 </I>to
80 &gt;<i> update last_used time with +o (CUMODE_o) so channels drop while channel
81 </I>&gt;<i> owners use them. Is this a bug or my misunderstood ?
82 </I>&gt;<i>
83 </I>&gt;<i> ######################################################
84 </I>&gt;<i> modules/chanserv/check.c
85 </I>&gt;<i> ...
86 </I>&gt;<i> void check_chan_user_modes(const char *source, struct c_userlist *u,
87 </I>&gt;<i> Channel *c, int32 oldmodes)
88 </I>&gt;<i> ...
89 </I>&gt;<i> if ((res &amp; ~modes) &amp; CUMODE_o) {
90 </I>&gt;<i> ci-&gt;last_used = time(NULL);
91 </I>&gt;<i> put_channelinfo(ci);
92 </I>&gt;<i> }
93 </I>&gt;<i> ...
94 </I>&gt;<i> ######################################################
95 </I>&gt;<i>
96 </I>&gt;<i> |SaMaN|
97 </I>&gt;<i>
98 </I>&gt;<i>
99 </I>
100
101 </PRE>
102
103 <!--endarticle-->
104 <HR>
105 <P><UL>
106 <!--threads-->
107 <LI>Previous message: <A HREF="002801.html">[IRCServices Coding] Bug or misunderstood ?
108 </A></li>
109 <LI>Next message: <A HREF="002225.html">[IRCServices Coding] Re: Akill problem in 5.0.22
110 </A></li>
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>
116 </LI>
117 </UL>
118
119 </body></html>