<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/1269" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2002-03-14T11:34:00-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/1269</id>

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-03-14T11:34:00-04:00</updated>

		<published>2002-03-14T11:34:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=5382#p5382</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=5382#p5382"/>
		<title type="html"><![CDATA[Help with this source code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=5382#p5382"><![CDATA[
Hi, I've got this code and I need help with it. It does work but I don't receive any emails at all. Hope someone can help by reading the code <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"> Thanks<br><div class="codebox"><p>Code: </p><pre><code>set timelmtvar ""bind dcc m bugreport away:bugreportproc away:bugreport {hand idx arg} {  global botname botnick galaxy_away timelmtvar version server  if {$arg == ""} {    putdcc $idx "Syntax: .bugreport &lt;msg&gt;"    return 1}  if {[llength $arg] &lt;=8} {    putdcc $idx "** Your Bug Report/Help Request or Suggestion is too short, message not sent! For more information, you may use ".ahelp bugreport" for assistance."    return 1}  if {[expr $timelmtvar + 120] &gt;= [unixtime]} {    putdcc $idx "** You cannot send more than 1 bug report/help request or suggestion every 2 minutes. For more information, you may use ".ahelp bugreport" for assistance."    return 0}  set timelmtvar [unixtime]  set x [open ".sendrpt" w]  catch {set email [getuser $hand XTRA email]}  set hostname ""  set uname ""  catch {set hostname "on [info hostname] "}  catch {set uname "[unames] "}  puts $x "$arg"  puts $x "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"  puts $x "This message is from $hand@$botnick ($email)"  puts $x "Running $galaxy_away(script) $galaxy_away(version) on Eggdrop[lindex $version 0] $hostname$unamew/ tcl[info tclversion]"  puts $x "Online as $botname on $server"  puts $x "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"  close $x  set bug [open "|mail -s "BugReport from $hand@$botnick ($email)" plexus@purehype.net &lt; .sendrpt" r]  while {![eof $bug]} {    catch {set responce [gets $bug]}    if {$responce == ""} {      putdcc $idx "Bug Report, Help Request Or Suggestion Sent Successfully."    } else {      putdcc $idx "Mail returned message/error: $responce"      putdcc $idx "For more information, you may use ".ahelp bugreport" for assistance."    }  }  catch {close $bug}  return 1}</code></pre></div>I ain't sure if it has got anything got to do with my shell server. But, hope someone can figure it out <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><br><br><br>&lt;font size=-1&gt;[ This Message was edited by: Stafford on 2002-03-14 08:35 ]&lt;/font&gt;<p>Statistics: Posted by Guest — Thu Mar 14, 2002 11:34 am</p><hr />
]]></content>
	</entry>
	</feed>
