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

	<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-03-05T10:28:03-04:00</updated>

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

		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2004-03-05T10:28:03-04:00</updated>

		<published>2004-03-05T10:28:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34268#p34268</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34268#p34268"/>
		<title type="html"><![CDATA[Tcl error [crap:list]: can not find channel named &quot;fu..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34268#p34268"><![CDATA[
It's because you seem to have copied some code from <a href="http://forum.egghelp.org/viewtopic.php?t=6013" class="postlink">here</a> and thought that your $wordlist (string) is the same as my $fp (file pointer).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Fri Mar 05, 2004 10:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ShavdApe]]></name></author>
		<updated>2004-03-05T10:07:25-04:00</updated>

		<published>2004-03-05T10:07:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34267#p34267</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34267#p34267"/>
		<title type="html"><![CDATA[Tcl error [crap:list]: can not find channel named &quot;fu..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34267#p34267"><![CDATA[
Please help me figure out why I get this error<blockquote class="uncited"><div>Tcl error [crap:list]: can not find channel named "fu.... </div></blockquote>proc crap:list {nick uhost hand chan args} {<br><br> set line [join $args]<br>  sql selectdb *********<br>  set wordlist ""<br>  set wordcount 0<br>   foreach row [sql "SELECT crapword FROM crapwords"] {<br>incr wordcount 1<br>append wordlist [lindex $row 0] " "    <br>   }<br>  set pos 100 <br>  while {1} { <br>    # this moves to $pos bytes before the end of the file <br>    seek $wordlist -$pos end <br>    # read to the end of the file <br>    set data [read -nonewline $wordlist] <br>    # we may have read multiple lines (if less than 512 bytes) <br>    set lines [split $wordlist \n] <br>    if {[llength $lines] &gt; 1} { <br>      # yup, we read at least 1 line and part of another, so we know <br>      # we for sure have the complete last line, we're done   <br>    putserv "PRIVMSG $chan :\[\002CRAP-LIST\002\] [lindex $lines end] (Total CrapFilter words: $wordcount)"<br>    } elseif {[tell $wordlists] &lt; $pos} { <br>      # This happens if the entire file is &lt; 512 bytes, and we didn't read <br>      # in multiple lines... therefore the file is a single line and we read the <br>      # whole thing, so we're done. <br>    putserv "PRIVMSG $chan :\[\002CRAP-LIST\002\] $data (Total CrapFilter words: $wordcount)"<br>    } <br>    # Now we just repeat the process, adding another 512 bytes <br>    incr pos 512 <br> }<br>}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4266">ShavdApe</a> — Fri Mar 05, 2004 10:07 am</p><hr />
]]></content>
	</entry>
	</feed>
