1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
4 <TITLE> [IRCServices] what do they think ?
6 <LINK REL=
"Index" HREF=
"index.html" >
7 <LINK REL=
"made" HREF=
"mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20what%20do%20they%20think%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=
"000185.html">
11 <LINK REL=
"Next" HREF=
"000187.html">
13 <BODY BGCOLOR=
"#ffffff">
14 <H1>[IRCServices] what do they think ?
</H1>
15 <B>root of all evil
</B>
16 <A HREF=
"mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20what%20do%20they%20think%20%3F&In-Reply-To="
17 TITLE=
"[IRCServices] what do they think ?">climber at rionet.com.br
19 <I>Thu Oct
7 13:
46:
37 PDT
1999</I>
21 <LI>Previous message:
<A HREF=
"000185.html">[IRCServices] New IRC protocol revised
23 <LI>Next message:
<A HREF=
"000187.html">[IRCServices] what do they think ?
25 <LI> <B>Messages sorted by:
</B>
26 <a href=
"date.html#186">[ date ]
</a>
27 <a href=
"thread.html#186">[ thread ]
</a>
28 <a href=
"subject.html#186">[ subject ]
</a>
29 <a href=
"author.html#186">[ author ]
</a>
34 <PRE>i had wrote this function on my services, it is working well, but i wold like
35 to hear coments and sugestions on it
37 it send password information to the nick email (ni-
>email) and i changed the
38 do_register, so users must give a mail
42 static void do_sendpass(User *u)
44 #ifndef USE_ENCRYPTION
45 char *nick = strtok(NULL,
" ");
52 notice(s_NickServ, u-
>nick,
"SENDPASS not avaliable
");
54 lock = fopen(
".senpass.nick
",
"r
");
56 notice(s_NickServ, u-
>nick,
"Sendpass is busy, try again later
");
60 notice(s_NickServ, u-
>nick,
"Sintax: /msg NickServ SENDPASS nick
");
62 } else if (!(ni = findnick(nick))) {
63 notice_lang(s_NickServ, u, NICK_X_NOT_REGISTERED, nick);
65 } else if (nick_is_services_admin(ni)
&& !is_services_root(u)) {
66 notice_lang(s_NickServ, u, PERMISSION_DENIED);
68 } else if (!ni-
>email) {
69 notice(s_NickServ, u-
>nick,
"No email set
");
71 } else if (!strchr(ni-
>email, '@')) {
72 notice(s_NickServ, u-
>nick,
"bad email
");
74 } else if(strlen(ni-
>email)
>50) {
75 notice(s_NickServ, u-
>nick,
"bad email
");
80 strcpy(illsend,
"/usr/sbin/sendmail
");
81 strcat(illsend, ni-
>email);
82 strcat(illsend,
" < .sendpass.nick
");
84 tosend = fopen(
".sendpass.nick
",
"w
");
86 fprintf(tosend,
"From:
<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">brasirc at brasirc.com.br
</A>\n
");
87 fprintf(tosend,
"Subject: [%s] Password\n
", ni-
>nick);
88 fprintf(tosend,
"\n
");
89 fprintf(tosend,
"Dear user\n
");
90 fprintf(tosend,
"yor nick %s password is:%s\n
", ni-
>nick, ni-
>pass);
91 fprintf(tosend,
"if u need help write to
<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">ajuda at brasirc.com.br
</A>\n
");
92 fprintf(tosend,
"or join #BrasIRCOP\n
");
93 fprintf(tosend,
"\n
");
94 fprintf(tosend,
"BrasIRC.com.br network
");
95 fprintf(tosend,
".\n
"); /* this get us out on sendmail */
99 system(
"rm -f .sendpass.nick
");
101 log(
"%s: %s!%s@%s used SENDPASS on %s email: %s
", s_NickServ, u-
>nick,
102 u -
>username, u-
>host, nick, ni-
>email);
104 wallops(s_NickServ,
"\
2%s\
2 used SENDPASS on \
2%s\
2, mail: %s
",
105 u-
>nick, nick, ni-
>email);
106 } else { notice(s_NickServ, u-
>nick,
"Ooops, Something gone
107 wrong on SendPass
");
112 Fighter ircadmin irc.rionet.com.br
113 Brasirc.com.br Network
114 ---------------------------------------------------------------
115 To unsubscribe, send email to
<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">majordomo at ender.shadowfire.org
</A>
116 with
"unsubscribe ircservices
" in the body, without the quotes.
124 <LI>Previous message:
<A HREF=
"000185.html">[IRCServices] New IRC protocol revised
126 <LI>Next message:
<A HREF=
"000187.html">[IRCServices] what do they think ?
128 <LI> <B>Messages sorted by:
</B>
129 <a href=
"date.html#186">[ date ]
</a>
130 <a href=
"thread.html#186">[ thread ]
</a>
131 <a href=
"subject.html#186">[ subject ]
</a>
132 <a href=
"author.html#186">[ author ]
</a>