]>
Commit | Line | Data |
---|---|---|
3bd189cb JR |
1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> |
2 | <HTML> | |
3 | <HEAD> | |
4 | <TITLE> [IRCServices Coding] Finding the modes set via channel mode change | |
5 | </TITLE> | |
6 | <LINK REL="Index" HREF="index.html" > | |
7 | <LINK REL="made" HREF="mailto:ircservices-coding%40ircservices.esper.net?Subject=%5BIRCServices%20Coding%5D%20Finding%20the%20modes%20set%20via%20channel%20mode%20change&In-Reply-To=ce4fe3510603291954n7360557obfdb01edc786e0e5%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="003250.html"> | |
11 | <LINK REL="Next" HREF="003252.html"> | |
12 | </HEAD> | |
13 | <BODY BGCOLOR="#ffffff"> | |
14 | <H1>[IRCServices Coding] Finding the modes set via channel mode change</H1> | |
15 | <B>Andrew Church</B> | |
16 | <A HREF="mailto:ircservices-coding%40ircservices.esper.net?Subject=%5BIRCServices%20Coding%5D%20Finding%20the%20modes%20set%20via%20channel%20mode%20change&In-Reply-To=ce4fe3510603291954n7360557obfdb01edc786e0e5%40mail.gmail.com" | |
17 | TITLE="[IRCServices Coding] Finding the modes set via channel mode change">achurch at achurch.org | |
18 | </A><BR> | |
19 | <I>Thu Mar 30 13:01:23 PST 2006</I> | |
20 | <P><UL> | |
21 | <LI>Previous message: <A HREF="003250.html">[IRCServices Coding] Finding the modes set via channel mode change | |
22 | </A></li> | |
23 | <LI>Next message: <A HREF="003252.html">[IRCServices Coding] Finding the modes set via channel mode change | |
24 | </A></li> | |
25 | <LI> <B>Messages sorted by:</B> | |
26 | <a href="date.html#3251">[ date ]</a> | |
27 | <a href="thread.html#3251">[ thread ]</a> | |
28 | <a href="subject.html#3251">[ subject ]</a> | |
29 | <a href="author.html#3251">[ author ]</a> | |
30 | </LI> | |
31 | </UL> | |
32 | <HR> | |
33 | <!--beginarticle--> | |
34 | <PRE>><i>1. I can't find out how to get the channel mode changes that were made to | |
35 | </I>><i>the channel using the "channel mode change" callback: | |
36 | </I>><i>static int do_channel_mode_change(const char *source, Channel *c); | |
37 | </I> | |
38 | The callback only informs you of the fact that the modes have changed. | |
39 | If you want to know exactly what has changed, you'll need to keep your own | |
40 | copy of the modes (c->mode) for each channel. I may change this for 5.1. | |
41 | ||
42 | ><i>2. This module logs user joins but everytime ircservices starts up, the | |
43 | </I>><i>join callback is called for each user that is allready in the channel. I | |
44 | </I>><i>tried using is_on_chan() but I guess until services has fully started up, it | |
45 | </I>><i>doesn't realize that the users are in the channel. | |
46 | </I> | |
47 | This is because of the way IRC works: when a server joins the network, | |
48 | all users are treated as if they had just joined the channels they are in. | |
49 | There's no way around this without rewriting the IRC protocol. | |
50 | ||
51 | --Andrew Church | |
52 | <A HREF="http://lists.ircservices.za.net/mailman/listinfo/ircservices-coding">achurch at achurch.org</A> | |
53 | <A HREF="http://achurch.org/">http://achurch.org/</A> | |
54 | </PRE> | |
55 | ||
56 | ||
57 | <!--endarticle--> | |
58 | <HR> | |
59 | <P><UL> | |
60 | <!--threads--> | |
61 | <LI>Previous message: <A HREF="003250.html">[IRCServices Coding] Finding the modes set via channel mode change | |
62 | </A></li> | |
63 | <LI>Next message: <A HREF="003252.html">[IRCServices Coding] Finding the modes set via channel mode change | |
64 | </A></li> | |
65 | <LI> <B>Messages sorted by:</B> | |
66 | <a href="date.html#3251">[ date ]</a> | |
67 | <a href="thread.html#3251">[ thread ]</a> | |
68 | <a href="subject.html#3251">[ subject ]</a> | |
69 | <a href="author.html#3251">[ author ]</a> | |
70 | </LI> | |
71 | </UL> | |
72 | ||
73 | </body></html> |