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

	<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-02-25T17:57:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[snow-ball]]></name></author>
		<updated>2002-02-25T17:57:00-04:00</updated>

		<published>2002-02-25T17:57:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4921#p4921</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4921#p4921"/>
		<title type="html"><![CDATA[autolog1.23-strolchi.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4921#p4921"><![CDATA[
Thank you.. for you help <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=262">snow-ball</a> — Mon Feb 25, 2002 5:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Wcc]]></name></author>
		<updated>2002-02-25T00:34:00-04:00</updated>

		<published>2002-02-25T00:34:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4907#p4907</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4907#p4907"/>
		<title type="html"><![CDATA[autolog1.23-strolchi.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4907#p4907"><![CDATA[
I didn't notice the topic text, oops <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile">.<br><div class="codebox"><p>Code: </p><pre><code>proc pub_sendfile {nick uhost hand chan arg} {   global sendfile_path autolog_exempt autolog_file  set stlchan [string tolower $chan]  if {$autolog_exempt != "" &amp;&amp; [lsearch -exact [split [string tolower $autolog_exempt]] $stlchan] != -1} {    return 0  } else {     regsub -all -- "%chan" $autolog_file $chan file     regsub -all -- "%stripchan" $file [string trim $chan "#+&amp;!"] file     set sendfile_file ""     append sendfile_file $sendfile_path $file     switch -- [dccsend $sendfile_file $nick] {       0 { putserv "NOTICE $nick :Sending file." }       1 { putserv "NOTICE $nick :Error: Too many pending file requests. Try again later, thank you." }       2 { putserv "NOTICE $nick :Error: Could not open socket. Please notify my admin, thank you." }       3 { putserv "NOTICE $nick :Error: File does not exist. Please notify my admin, thank you." }       4 { putserv "NOTICE $nick :Error: Too many file sends already in progress. Your request has been added to the queue, please wait, thank you." }     }   } } </code></pre></div>&lt;font size=-1&gt;[ This Message was edited by: Wcc on 2002-02-24 21:34 ]&lt;/font&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=270">Wcc</a> — Mon Feb 25, 2002 12:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Wcc]]></name></author>
		<updated>2002-02-25T00:31:00-04:00</updated>

		<published>2002-02-25T00:31:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4906#p4906</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4906#p4906"/>
		<title type="html"><![CDATA[autolog1.23-strolchi.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4906#p4906"><![CDATA[
The 'stlchan' variable doesn't exist. This should be set outside the proc somewhere. It would help if you could post the whole script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=270">Wcc</a> — Mon Feb 25, 2002 12:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[snow-ball]]></name></author>
		<updated>2002-02-24T21:47:00-04:00</updated>

		<published>2002-02-24T21:47:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4903#p4903</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4903#p4903"/>
		<title type="html"><![CDATA[autolog1.23-strolchi.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4903#p4903"><![CDATA[
Hello<br><br>can any one help me with it? <br><br>I getting the following error<br><br>Tcl error [pub_sendfile]: can't read "stlchan": no such variable<br><br>proc pub_sendfile {nick uhost hand chan arg} {<br> global sendfile_path stlchan autolog_exempt autolog_file<br> <br>if {$autolog_exempt != "" &amp;&amp; [lsearch -exact [string tolower [split $autolog_exempt]] $stlchan] != -1} { return 0 } else {<br>  <br>  regsub -all -- "%chan" $autolog_file $chan file<br>  regsub -all -- "%stripchan" $file [string trim $chan "#+&amp;!"] file   <br>  <br>  set sendfile_file ""<br>  append sendfile_file $sendfile_path $file <br><br>  switch -- [dccsend $sendfile_file $nick] {<br>   0 { putserv "NOTICE $nick :Sending file." }<br>   1 { putserv "NOTICE $nick :Error: Too many pending file requests. Try again later, thank you." }<br>   2 { putserv "NOTICE $nick :Error: Could not open socket. Please notify my admin, thank you." }<br>   3 { putserv "NOTICE $nick :Error: File does not exist. Please notify my admin, thank you." }<br>   4 { putserv "NOTICE $nick :Error: Too many file sends already in progress. Your request has been added to the queue, please wait, thank you." }<br>  }<br> }<br>}<br> <br>Thank You<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=262">snow-ball</a> — Sun Feb 24, 2002 9:47 pm</p><hr />
]]></content>
	</entry>
	</feed>
