]> jfr.im git - irc.git/blob - software/RELEASES/ircservices/achurch.org/services/lists/ircservices/1999/000232.html
rename -> *.git
[irc.git] / software / RELEASES / ircservices / achurch.org / services / lists / ircservices / 1999 / 000232.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2 <HTML>
3 <HEAD>
4 <TITLE> [IRCServices] Re: Nick colision
5 </TITLE>
6 <LINK REL="Index" HREF="index.html" >
7 <LINK REL="made" HREF="mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20Re%3A%20Nick%20colision&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="000231.html">
11 <LINK REL="Next" HREF="000233.html">
12 </HEAD>
13 <BODY BGCOLOR="#ffffff">
14 <H1>[IRCServices] Re: Nick colision</H1>
15 <B>Carlos Mendes Martini</B>
16 <A HREF="mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20Re%3A%20Nick%20colision&In-Reply-To="
17 TITLE="[IRCServices] Re: Nick colision">martini at intergate.com.br
18 </A><BR>
19 <I>Thu Oct 21 18:36:38 PDT 1999</I>
20 <P><UL>
21 <LI>Previous message: <A HREF="000231.html">[IRCServices] lNick colision
22 </A></li>
23 <LI>Next message: <A HREF="000233.html">[IRCServices] Re: Nick colision
24 </A></li>
25 <LI> <B>Messages sorted by:</B>
26 <a href="date.html#232">[ date ]</a>
27 <a href="thread.html#232">[ thread ]</a>
28 <a href="subject.html#232">[ subject ]</a>
29 <a href="author.html#232">[ author ]</a>
30 </LI>
31 </UL>
32 <HR>
33 <!--beginarticle-->
34 <PRE>root of all evil wrote:
35 &gt;<i>
36 </I>&gt;<i> i use this on my services:
37 </I>&gt;<i> this code i got from servicesbr, writen by wyrn
38 </I>&gt;<i> but it works very well
39 </I>&gt;<i> i have used it on a network whith 200 users whitout problems
40 </I>
41
42
43 Hummm... I had some troubles when doing this... so, I preferred to
44 modify the original code, as the following:
45
46 Original code:
47
48 /****************************************************************/
49 #ifdef IRC_DAL4_4_15
50 if (NSForceNickChange) {
51 struct timeval tv;
52 char guestnick[NICKMAX];
53
54 gettimeofday(&amp;tv, NULL);
55 snprintf(guestnick, sizeof(guestnick), &quot;%s%ld%ld&quot;, NSGuestNickPrefix,
56 tv.tv_usec / 10000, tv.tv_sec % (60*60*24));
57
58 notice_lang(s_NickServ, u, FORCENICKCHANGE_NOW, guestnick);
59 /****************************************************************/
60
61
62 New code:
63
64 /****************************************************************/
65 #ifdef IRC_DAL4_4_15
66 if (NSForceNickChange) {
67 char guestnick[NICKMAX];
68
69 int beh;
70 beh=time(NULL);
71 sprintf(guestnick, &quot;%s%d%d&quot;, NSGuestNickPrefix, nseed, beh);
72 if (nseed&gt;=9999) nseed=0;
73 nseed++;
74
75 notice_lang(s_NickServ, u, FORCENICKCHANGE_NOW, guestnick);
76 /****************************************************************/
77
78
79 And place the line above at the top of the file, with the others
80 &quot;static int&quot;:
81
82 static int nseed;
83
84
85
86 I apologize for my bad english.
87
88
89 Best regards,
90 --
91
92 =====================================================================
93 MARTINI - <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">martini at brasirc.net</A>
94 -------------------------------------------------------------
95 Coordenador de Atendimento ao Usu&#225;rio
96 BrasIRC Webmaster - <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">webmaster at brasirc.net</A>
97 BrasIRC.NET Network - <A HREF="http://www.brasirc.net">http://www.brasirc.net</A>
98 =====================================================================
99
100 -
101 ---------------------------------------------------------------
102 To unsubscribe, send email to <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">majordomo at ender.shadowfire.org</A>
103 with &quot;unsubscribe ircservices&quot; in the body, without the quotes.
104
105 </PRE>
106
107 <!--endarticle-->
108 <HR>
109 <P><UL>
110 <!--threads-->
111 <LI>Previous message: <A HREF="000231.html">[IRCServices] lNick colision
112 </A></li>
113 <LI>Next message: <A HREF="000233.html">[IRCServices] Re: Nick colision
114 </A></li>
115 <LI> <B>Messages sorted by:</B>
116 <a href="date.html#232">[ date ]</a>
117 <a href="thread.html#232">[ thread ]</a>
118 <a href="subject.html#232">[ subject ]</a>
119 <a href="author.html#232">[ author ]</a>
120 </LI>
121 </UL>
122
123 </body></html>