<?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/3077" />

	<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-12-03T00:03:58-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-12-03T00:03:58-04:00</updated>

		<published>2002-12-03T00:03:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13894#p13894</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13894#p13894"/>
		<title type="html"><![CDATA[Logging Verbose to a txt file?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13894#p13894"><![CDATA[
Did you find a solution?<p>Statistics: Posted by Guest — Tue Dec 03, 2002 12:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gothic-Angel]]></name></author>
		<updated>2002-11-22T23:33:53-04:00</updated>

		<published>2002-11-22T23:33:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13495#p13495</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13495#p13495"/>
		<title type="html"><![CDATA[Logging Verbose to a txt file?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13495#p13495"><![CDATA[
I found a tcl by WCC to send verbose's done in a channel to an email. However I was wondering if someone could help me modify it to log it to a text file?<br><br>here is the tcl<br><div class="codebox"><p>Code: </p><pre><code>set verbosemail_setting(address) "wcc@techmonkeys.org"set verbosemail_setting(subject) "\[%date %time\] VerboseMail"set verbosemail_setting(bold) 1set verbosemail_setting(VERBOSEMAIL:) 1if {![string match 1.6.* $version]} { putlog "\002VERBOSEMAIL:\002 \002WARNING:\002 This script is intended to run on eggdrop 1.6.x or later." }if {[info tclversion] &lt; 8.2} { putlog "\002VERBOSEMAIL:\002 \002WARNING:\002 This script is intended to run on Tcl Version 8.2 or later." }bind notc - "*\[VERBOSE\]*" verbosemail_mailproc verbosemail_dopre {} {if {!$::verbosemail_setting(VERBOSEMAIL:)} { return "" }if {!$::verbosemail_setting(bold)} { return "VERBOSEMAIL: " }return "\002VERBOSEMAIL:\002 "}proc verbosemail_mail {nick uhost hand text dest} {if {[string compare [string tolower $nick] chanserv] != 0} { return }if {[catch {exec which mail}]} { putlog "[verbosemail_dopre]Error: This system does not support 'mail'." ; return }if {[catch {open verbosemail.temp w} mail]} { putlog "[verbosemail_dopre]Error: Could not open verbosemail.temp." ; return }puts $mail $text ; close $mailregsub -all -- "%botnick" $::verbosemail_setting(subject) $::botnick subjectregsub -all -- "%date" $subject [clock format [clock seconds] -format "%D"] subjectregsub -all -- "%time" $subject [clock format [clock seconds] -format "%I:%M %p"] subjectif {[catch {exec mail $::verbosemail_setting(address) -s $subject &lt; verbosemail.temp} error]} { putlog "[verbosemail_dopre]Error: $error" }if {[catch {file delete -force verbosemail.temp}]} { putlog "[verbosemail_dopre]Error: Could not delete verbosemail.temp." }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1949">Gothic-Angel</a> — Fri Nov 22, 2002 11:33 pm</p><hr />
]]></content>
	</entry>
	</feed>
