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

	<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>2004-07-02T12:48:48-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-07-02T12:48:48-04:00</updated>

		<published>2004-07-02T12:48:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38140#p38140</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38140#p38140"/>
		<title type="html"><![CDATA[Script executes perfectly but gives an unknown error.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38140#p38140"><![CDATA[
Umm... thanks I'll look into the suggestions you have<br>mentioned and try to implement them.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Fri Jul 02, 2004 12:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arcane]]></name></author>
		<updated>2004-07-02T06:50:47-04:00</updated>

		<published>2004-07-02T06:50:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38131#p38131</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38131#p38131"/>
		<title type="html"><![CDATA[Script executes perfectly but gives an unknown error.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38131#p38131"><![CDATA[
although it doesn't have to do something with your problem - i think you should close the file even if $verbosewhy != 1 <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2617">arcane</a> — Fri Jul 02, 2004 6:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-07-02T06:30:21-04:00</updated>

		<published>2004-07-02T06:30:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38129#p38129</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38129#p38129"/>
		<title type="html"><![CDATA[Script executes perfectly but gives an unknown error.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38129#p38129"><![CDATA[
do '.tcl set errorInfo' to get a more verbose version of the last error message. Why are you catching 'close' but not 'puts'? if the calls to 'puts' doesn't generate an error, 'close' shure won't either <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Jul 02, 2004 6:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-07-02T05:28:15-04:00</updated>

		<published>2004-07-02T05:28:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38128#p38128</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38128#p38128"/>
		<title type="html"><![CDATA[Script executes perfectly but gives an unknown error.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38128#p38128"><![CDATA[
This script is working fine and writes to the text file, but still<br>it is giving me an unknown error, which I am unable to locate.<br>If you can point it out, it would be great.<br><div class="codebox"><p>Code: </p><pre><code>bind notc - * chanserv:verbose:noticeproc chanserv:verbose:notice {nick uhost hand text {chan ""}} { global botnick verbosetype verbosechans  if {($nick == $botnick) || ($chan == $botnick)} { return 0 }  set serviceverbose [lindex $text 0]; set verbose "VERBOSE"  set servicearrow [lindex $text 2]; set arrow "=&gt;"; set user [lindex $text 1]; set channel [lindex $text 4]; putlog "a1"  if {([string equal $nick "ChanServ"]) &amp;&amp; ([string match *$serviceverbose* $verbose]) &amp;&amp; ([string equal $servicearrow $arrow]) &amp;&amp; ([string match -nocase "*!*" $user]) &amp;&amp; ([string match -nocase "*@*" $user]) &amp;&amp; ([string match -nocase "#*" $channel])} {; putlog "a2"   set access [lindex $text 3]; set modify [lindex $text 5]; set channel [lindex $text 4]; putlog "a10"   set from [lindex $text 1]; set nick [lindex [split $from "!"] 0]; set uhost [lindex [split $from "!"] 1]; set person [lindex $text 6]; putlog "a11"   putlog "$access - $modify - $channel - $from - $nick - $uhost - $person - [getchanhost $person]"   if {($verbosetype == 1) &amp;&amp; ($verbosechans != "") &amp;&amp; ([string match "#*" $verbosechans])} { verbose:2 $chan $text }; putlog "a3"   if {($verbosetype == 2)} { verbose:all:chans $chan $text }; putlog "a4"   if {(($verbosetype != 1) &amp;&amp; ($verbosetype != 2)) || ($verbosetype == 0) || ($verbosetype == "")} { return 0 }; putlog "a5"   }}proc verbose:2 {chan text} { global botnick verbosefile verbosechanserv verbosewhy  set access [lindex $text 3]; set modify [lindex $text 5]; set channel [lindex $text 4]; putlog "a10"  set from [lindex $text 1]; set nick [lindex [split $from "!"] 0]; set uhost [lindex [split $from "!"] 1]; set person [lindex $text 6]; putlog "a11"  if {![file exists $verbosefile]} { set file [open $verbosefile w]; puts $file "CHANSERV VERBOSE RECORDS (ChanServ Verbose Log Script)"; catch {close $file} }; putlog 3  if {([string equal -nocase $access "unban"]) || ([string equal -nocase $access "akick"]) || ([string equal -nocase $modify "wipe"])} { return 0 }; putlog 4  if {([string equal -nocase $access "aop"]) || ([string equal -nocase $access "sop"]) || ([string equal -nocase $modify "add"]) || ([string equal -nocase $modify "del"])} {; putlog 5   if {([string equal -nocase $access "aop"])} { set type1 AOP }; if {([string equal -nocase $access "sop"])} { set type1 SOP }; putlog 6   if {([string equal -nocase $modify "add"])} { set type2 ADDED }; if {([string equal -nocase $modify "del"])} { set type2 DELETED }; putlog 7   set file [open $verbosefile "a"]; set time [unixtime]; set whytime [ctime $time]; putlog 8   set date [string trim [lindex $whytime 2]]; set month [string trim [lindex $whytime 1]]; set time [string trim [lindex $whytime 3]]; putlog 9    if {($verbosewhy == 1)} {     puts $file "\n\[$date $month $time\] -ChanServ- $text"     puts $file "\[$date $month $time\] $nick ($from) *$type2* $person to/from the $type1 list of $chan."     catch {close $file}; putserv "PRIVMSG $verbosechanserv :WHY $channel $nick"     }     if {($verbosewhy != 1)} {       puts $file "\n\[$date $month $time\] -ChanServ- $text"      return 0      }   }}</code></pre></div>Here is the putlog output in partyline<br><div class="codebox"><p>Code: </p><pre><code>&lt;adapter&gt; [17:14] a1&lt;adapter&gt; [17:14] a2&lt;adapter&gt; [17:14] a10&lt;adapter&gt; [17:14] a11&lt;adapter&gt; [17:14] aop - add - #wiredpatrol - awyeah!eleet@TMnet.Jaring.Maxis.TimeNet.visualunix.net - awyeah - eleet@TMnet.Jaring.Maxis.TimeNet.visualunix.net - device - awyeah@unix.majic.org[17:14] Tcl error [chanserv:verbose:notice]: can not find channel named "file7"</code></pre></div><br>This seems to be the error<br><div class="codebox"><p>Code: </p><pre><code>&lt;adapter&gt; [17:14] Tcl error [chanserv:verbose:notice]: can not find channel named "file7"</code></pre></div>Can anyone find or point out which line would the error be line<br>logically the script looks fine to me. It is working correctly and is<br>writing the to text file perfectly with all the correct variables.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Fri Jul 02, 2004 5:28 am</p><hr />
]]></content>
	</entry>
	</feed>
