]> jfr.im git - irc.git/blob - software/!RELEASES/ircservices/achurch.org/services/lists/ircservices-coding/2002/000789.html
RELEASE -> !RELEASE
[irc.git] / software / !RELEASES / ircservices / achurch.org / services / lists / ircservices-coding / 2002 / 000789.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2 <HTML>
3 <HEAD>
4 <TITLE> [IRCServices Coding] call to introduce_users
5 </TITLE>
6 <LINK REL="Index" HREF="index.html" >
7 <LINK REL="made" HREF="mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20call%20to%20introduce_users&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="000786.html">
11 <LINK REL="Next" HREF="000787.html">
12 </HEAD>
13 <BODY BGCOLOR="#ffffff">
14 <H1>[IRCServices Coding] call to introduce_users</H1>
15 <B>fabulous</B>
16 <A HREF="mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20call%20to%20introduce_users&In-Reply-To="
17 TITLE="[IRCServices Coding] call to introduce_users">fabulous at t7ds.com.br
18 </A><BR>
19 <I>Mon May 27 07:52:10 PDT 2002</I>
20 <P><UL>
21 <LI>Previous message: <A HREF="000786.html">[IRCServices Coding] Crontab Script
22 </A></li>
23 <LI>Next message: <A HREF="000787.html">[IRCServices Coding] Strange Errors in 5.0
24 </A></li>
25 <LI> <B>Messages sorted by:</B>
26 <a href="date.html#789">[ date ]</a>
27 <a href="thread.html#789">[ thread ]</a>
28 <a href="subject.html#789">[ subject ]</a>
29 <a href="author.html#789">[ author ]</a>
30 </LI>
31 </UL>
32 <HR>
33 <!--beginarticle-->
34 <PRE>Something that's not very important, but has caused a bit of trouble for
35 me is the time when introduce_users is called.
36 IRCServices (4.x or 5.x) should wait for the hub to reply the
37 password(and compare it, why not?) before sending it's pseudo-clients
38 (nickserv,chanserv,etc).
39
40 Actually it sends it's SERVER information and right after start flooding
41 the hub with its client information without waiting for the 'PASS' command.
42 This create a problem with some ircds that won't accept this initial
43 flood and will just ignore it causing a introduce_user loop right after
44 the linking.
45
46 The way I fixed it was creating a m_pass function and calling
47 introduce_user in it instead of calling it from the main routine.
48
49 Here is the m_pass :]
50
51 static void m_pass(char *source, int ac, char **av)
52 {
53 if (ac &lt; 1)
54 return;
55 if (!strcmp(av[0], RemotePassword)) {
56 introduce_user(NULL);
57 } else
58 fatal(&quot;Invalid password received from hub: %s&quot;, av[0]);
59 }
60
61 []'s
62
63
64 </PRE>
65
66 <!--endarticle-->
67 <HR>
68 <P><UL>
69 <!--threads-->
70 <LI>Previous message: <A HREF="000786.html">[IRCServices Coding] Crontab Script
71 </A></li>
72 <LI>Next message: <A HREF="000787.html">[IRCServices Coding] Strange Errors in 5.0
73 </A></li>
74 <LI> <B>Messages sorted by:</B>
75 <a href="date.html#789">[ date ]</a>
76 <a href="thread.html#789">[ thread ]</a>
77 <a href="subject.html#789">[ subject ]</a>
78 <a href="author.html#789">[ author ]</a>
79 </LI>
80 </UL>
81
82 </body></html>