]> jfr.im git - irc.git/blobdiff - software/!RELEASES/ircservices/achurch.org/services/lists/ircservices/1999/000187.html
RELEASE -> !RELEASE
[irc.git] / software / !RELEASES / ircservices / achurch.org / services / lists / ircservices / 1999 / 000187.html
diff --git a/software/!RELEASES/ircservices/achurch.org/services/lists/ircservices/1999/000187.html b/software/!RELEASES/ircservices/achurch.org/services/lists/ircservices/1999/000187.html
new file mode 100644 (file)
index 0000000..7c72671
--- /dev/null
@@ -0,0 +1,152 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+   <TITLE> [IRCServices] what do they think ?
+   </TITLE>
+   <LINK REL="Index" HREF="index.html" >
+   <LINK REL="made" HREF="mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20what%20do%20they%20think%20%3F&In-Reply-To=99100716582300.00678%40rcmoraes.intranet">
+   <META NAME="robots" CONTENT="index,nofollow">
+   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+   <LINK REL="Previous"  HREF="000186.html">
+   <LINK REL="Next"  HREF="000188.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+   <H1>[IRCServices] what do they think ?</H1>
+    <B>Andrew Kempe</B> 
+    <A HREF="mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20what%20do%20they%20think%20%3F&In-Reply-To=99100716582300.00678%40rcmoraes.intranet"
+       TITLE="[IRCServices] what do they think ?">andrewk at icon.co.za
+       </A><BR>
+    <I>Fri Oct  8 02:42:27 PDT 1999</I>
+    <P><UL>
+        <LI>Previous message: <A HREF="000186.html">[IRCServices] what do they think ?
+</A></li>
+        <LI>Next message: <A HREF="000188.html">[IRCServices] what do they think ?
+</A></li>
+         <LI> <B>Messages sorted by:</B> 
+              <a href="date.html#187">[ date ]</a>
+              <a href="thread.html#187">[ thread ]</a>
+              <a href="subject.html#187">[ subject ]</a>
+              <a href="author.html#187">[ author ]</a>
+         </LI>
+       </UL>
+    <HR>  
+<!--beginarticle-->
+<PRE>I have little experience with system(), but from what I've heard, it's not
+such a good command to use. execve() being a more preferred method. Am I
+correct?
+
+This type of functionality is already being build into the next version of
+IRC Services.
+
+Andrew
+
+On Thu, 7 Oct 1999, root of all evil wrote:
+
+&gt;<i> i had wrote this function on my services, it is working well, but i wold like
+</I>&gt;<i> to hear coments and sugestions on it
+</I>&gt;<i> 
+</I>&gt;<i> it send password information to the nick email (ni-&gt;email) and i changed the
+</I>&gt;<i> do_register, so users must give a mail
+</I>&gt;<i> 
+</I>&gt;<i> the function is it : 
+</I>&gt;<i> 
+</I>&gt;<i> static void do_sendpass(User *u)
+</I>&gt;<i> {
+</I>&gt;<i> #ifndef USE_ENCRYPTION
+</I>&gt;<i>     char *nick = strtok(NULL, &quot; &quot;);
+</I>&gt;<i>     NickInfo *ni;
+</I>&gt;<i>     FILE *tosend;
+</I>&gt;<i>     FILE *lock;
+</I>&gt;<i> #endif
+</I>&gt;<i> 
+</I>&gt;<i> #ifdef USE_ENCRYPTION
+</I>&gt;<i>     notice(s_NickServ, u-&gt;nick, &quot;SENDPASS not avaliable&quot;);
+</I>&gt;<i> #else
+</I>&gt;<i>       lock = fopen(&quot;.senpass.nick&quot;, &quot;r&quot;);
+</I>&gt;<i>       if (lock) {
+</I>&gt;<i>         notice(s_NickServ, u-&gt;nick, &quot;Sendpass is busy, try again later&quot;);
+</I>&gt;<i>         fclose(lock);
+</I>&gt;<i>         return ;                  
+</I>&gt;<i>     }else if (!nick) {
+</I>&gt;<i>             notice(s_NickServ, u-&gt;nick, &quot;Sintax: /msg NickServ SENDPASS nick&quot;);
+</I>&gt;<i>    return ;
+</I>&gt;<i>     } else if (!(ni = findnick(nick))) {
+</I>&gt;<i>         notice_lang(s_NickServ, u, NICK_X_NOT_REGISTERED, nick);
+</I>&gt;<i>         return ;
+</I>&gt;<i>     } else if (nick_is_services_admin(ni) &amp;&amp; !is_services_root(u)) {  
+</I>&gt;<i>         notice_lang(s_NickServ, u, PERMISSION_DENIED); 
+</I>&gt;<i>         return ;
+</I>&gt;<i>     } else if (!ni-&gt;email) {
+</I>&gt;<i>         notice(s_NickServ, u-&gt;nick, &quot;No email set&quot;);
+</I>&gt;<i>         return ;
+</I>&gt;<i>     } else if (!strchr(ni-&gt;email, '@')) {
+</I>&gt;<i>         notice(s_NickServ, u-&gt;nick, &quot;bad email&quot;);
+</I>&gt;<i>         return ;
+</I>&gt;<i>     } else if(strlen(ni-&gt;email)&gt;50) {
+</I>&gt;<i>         notice(s_NickServ, u-&gt;nick, &quot;bad email&quot;);
+</I>&gt;<i>         return ;
+</I>&gt;<i>     } else {
+</I>&gt;<i>             
+</I>&gt;<i>        char illsend[256];
+</I>&gt;<i>        strcpy(illsend,&quot;/usr/sbin/sendmail &quot;);
+</I>&gt;<i>        strcat(illsend, ni-&gt;email);
+</I>&gt;<i>        strcat(illsend,&quot; &lt; .sendpass.nick&quot;);
+</I>&gt;<i> 
+</I>&gt;<i>         tosend = fopen(&quot;.sendpass.nick&quot;, &quot;w&quot;);
+</I>&gt;<i>           if (tosend) {
+</I>&gt;<i>           fprintf(tosend, &quot;From: <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">brasirc at brasirc.com.br</A>\n&quot;);
+</I>&gt;<i>           fprintf(tosend, &quot;Subject: [%s] Password\n&quot;, ni-&gt;nick);
+</I>&gt;<i>           fprintf(tosend, &quot;\n&quot;);
+</I>&gt;<i>           fprintf(tosend, &quot;Dear user\n&quot;);
+</I>&gt;<i>           fprintf(tosend, &quot;yor nick %s password is:%s\n&quot;, ni-&gt;nick, ni-&gt;pass);
+</I>&gt;<i>           fprintf(tosend, &quot;if u need help  write to <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">ajuda at brasirc.com.br</A>\n&quot;);  
+</I>&gt;<i>           fprintf(tosend, &quot;or join #BrasIRCOP\n&quot;);       
+</I>&gt;<i>           fprintf(tosend, &quot;\n&quot;); 
+</I>&gt;<i>           fprintf(tosend, &quot;BrasIRC.com.br network&quot;);
+</I>&gt;<i>           fprintf(tosend,&quot;.\n&quot;);   /* this get us out on sendmail */ 
+</I>&gt;<i>           fclose(tosend);
+</I>&gt;<i> 
+</I>&gt;<i>           system(illsend);
+</I>&gt;<i>           system(&quot;rm -f .sendpass.nick&quot;); 
+</I>&gt;<i> 
+</I>&gt;<i>         log(&quot;%s: %s!%s@%s used SENDPASS on %s email: %s&quot;, s_NickServ, u-&gt;nick,
+</I>&gt;<i> u -&gt;username, u-&gt;host, nick, ni-&gt;email);
+</I>&gt;<i>          if (WallGetpass)             
+</I>&gt;<i>          wallops(s_NickServ, &quot;\2%s\2 used SENDPASS on \2%s\2, mail: %s&quot;,
+</I>&gt;<i> u-&gt;nick, nick, ni-&gt;email);         
+</I>&gt;<i>        } else {           notice(s_NickServ, u-&gt;nick, &quot;Ooops, Something gone
+</I>&gt;<i> wrong on SendPass&quot;);
+</I>&gt;<i>           }     } 
+</I>&gt;<i> } 
+</I>&gt;<i> #endif
+</I>&gt;<i> 
+</I>&gt;<i> Fighter ircadmin irc.rionet.com.br
+</I>&gt;<i> Brasirc.com.br Network 
+</I>&gt;<i> ---------------------------------------------------------------
+</I>&gt;<i> To unsubscribe, send email to <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">majordomo at ender.shadowfire.org</A>
+</I>&gt;<i> with &quot;unsubscribe ircservices&quot; in the body, without the quotes.
+</I>&gt;<i> 
+</I>
+---------------------------------------------------------------
+To unsubscribe, send email to <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">majordomo at ender.shadowfire.org</A>
+with &quot;unsubscribe ircservices&quot; in the body, without the quotes.
+
+</PRE>
+
+<!--endarticle-->
+    <HR>
+    <P><UL>
+        <!--threads-->
+       <LI>Previous message: <A HREF="000186.html">[IRCServices] what do they think ?
+</A></li>
+       <LI>Next message: <A HREF="000188.html">[IRCServices] what do they think ?
+</A></li>
+         <LI> <B>Messages sorted by:</B> 
+              <a href="date.html#187">[ date ]</a>
+              <a href="thread.html#187">[ thread ]</a>
+              <a href="subject.html#187">[ subject ]</a>
+              <a href="author.html#187">[ author ]</a>
+         </LI>
+       </UL>
+
+</body></html>