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

	<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>2007-01-08T01:56:49-04:00</updated>

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

		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2007-01-08T01:56:49-04:00</updated>

		<published>2007-01-08T01:56:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69547#p69547</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69547#p69547"/>
		<title type="html"><![CDATA[chanlist doesn't work]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69547#p69547"><![CDATA[
after getting the error use:<br>.set errorInfo<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Mon Jan 08, 2007 1:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-01-06T15:22:57-04:00</updated>

		<published>2007-01-06T15:22:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69513#p69513</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69513#p69513"/>
		<title type="html"><![CDATA[chanlist doesn't work]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69513#p69513"><![CDATA[
Read: <a href="http://forum.egghelp.org/viewtopic.php?t=10215" class="postlink">http://forum.egghelp.org/viewtopic.php?t=10215</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Sat Jan 06, 2007 3:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[crux]]></name></author>
		<updated>2007-01-06T05:45:27-04:00</updated>

		<published>2007-01-06T05:45:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69501#p69501</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69501#p69501"/>
		<title type="html"><![CDATA[chanlist doesn't work]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69501#p69501"><![CDATA[
yes, here is code.<br><div class="codebox"><p>Code: </p><pre><code>#Chanlist 1.00 Aug 2001#Creates a channel list and stores in an HTML file#The color codes conversion is based on ques5.tcl by Robert Pointer and#the eggheads Developement Team, modifyed to read the background codes.#Any questions? mailto:merlin@ebs.cl#Where id the channel file located?set listfile "../../httpd/buscando/canales.html"#How many seconds will the bot wait to write a new list?#be careful, in large networks this can take a whileset refresh 60#What is the title of the page?set pagetitle "MyNetwork Channel List"###### the code starts here ########utimer $refresh get_channels  # Which characters should be allowed in URLs?# DO NOT MODIFY unless you really know what you are doing.# Expecially never add '&lt;', '"' and '&gt;'set web_urlchars "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890 :+-/!\$%&amp;()=[]{}#^~*.:,;\\|?_@"# IRC -&gt; HTML color translation tableset web_color(0) "#FFFFFF"set web_color(1) "#000000"set web_color(2) "#00007F"set web_color(3) "#008F00"set web_color(4) "#FF0000"set web_color(5) "#7F0000"set web_color(6) "#9F009F"set web_color(7) "#FF7F00"set web_color(8) "#F0FF00"set web_color(9) "#00F700"set web_color(10) "#008F8F"set web_color(11) "#00F7FF"set web_color(12) "#0000FF"set web_color(13) "#FF00FF"set web_color(14) "#7F7F7F"set web_color(15) "#CFCFCF"# IRC -&gt; HTML style translation tableset web_style(\002) "&lt;B&gt; &lt;/B&gt;"set web_style(\003) "&lt;FONT&gt; &lt;/FONT&gt;"set web_style(\026) "&lt;I&gt; &lt;/I&gt;"set web_style(\037) "&lt;U&gt; &lt;/U&gt;"set web_style(,) ","proc webify {string} {  # TCL8.1 only:  #return [string map {\" " &amp; &amp; &lt; &lt; &gt; &gt;} $string]  # Otherwise use this:  regsub -all "\\&amp;" $string "\\&amp;" string  regsub -all "\"" $string "\\"" string  regsub -all "&lt;" $string "&lt;" string  return $string}proc convstyle {string} {  global web_color web_style  set result ""  set stack ""  for {set i 0} "\$i &lt; [string length $string]" {incr i} {    set char [string index $string $i]    switch -- $char {      "\002"  - "\026" - "\037"  {        if {[string first $char $stack] != -1} {          # NOT &amp;&amp;          if {[string index $stack 0] == $char} {            append result [lindex $web_style($char) 1]            set stack [string range $stack 1 end]          }        } else {          append result [lindex $web_style($char) 0]          set stack $char$stack        }      }      "\003" {        if {[string first $char $stack] != -1} {          if {[string index $stack 0] == $char} {            append result [lindex $web_style($char) 1]            set stack [string range $stack 1 end]          }        }        set c [getnumber [string range $string [expr $i + 1] [expr $i + 2]]]         if {$c != "" &amp;&amp; $c &gt;= 0 &amp;&amp; $c &lt;= 15} {          incr i [expr [string length $c] + 0 ]          append result "&lt;FONT COLOR=\"$web_color($c)\"&gt;"          set stack $char$stack        }      }     "," {        if {[string first $char $stack] != -1} {          if {[string index $stack 0] == $char} {            append result [lindex $web_style($char) 1]            set stack [string range $stack 1 end]          }        }                set d [getnumber [string range $string [expr $i + 1] [expr $i + 2]]]         if {$d != "" &amp;&amp; $d &gt;= 0 &amp;&amp; $d &lt;= 15 &amp;&amp; $d != ","} {                append result "&lt;span style=\"background-color : $web_color($d);\"&gt;"                incr i [expr [string length $d] + 0]                set stack $char$stack                        }      }      default {append result $char}    }  }  foreach char [split $stack ""] {    if {$char == "\002" || $char == "\003" ||        $char == "\026" || $char == "\037"} {      append result [lindex $web_style($char) 1]    }  }  return $result}proc getnumber {string} {  set result ""  foreach char [split $string ""] {    if {[string first $char "0123456789"] == -1} {      return $result    } else {for {set i 0} "\$i &lt; [string length $string]" {incr i} {if { [string first  [string range $string $i $i] "0123456789"]  == -1} {} else {        append result $charset i [string length $string]}}    }  }  return $result}# set variables to defaultsset list_active 0if {![info exists list_data]} then {set list_data ""}# get a new channel listproc get_channels {} {  global list_active listfile pagetitle  set fh1 [open $listfile w]  puts $fh1 "&lt;html&gt;"  puts $fh1 "&lt;head&gt;"  puts $fh1 "&lt;title&gt;"  puts $fh1 $pagetitle  puts $fh1 "&lt;/title&gt;"  puts $fh1 "&lt;style&gt;"  puts $fh1 "TR,TD,BODY { font-family: arial,helvetica;}"  puts $fh1 "&lt;/style&gt;"  puts $fh1 "&lt;/head&gt;"  puts $fh1 "&lt;body bgcolor=#FFFFFF&gt;"  puts $fh1 "&lt;table border=1 cellspacing=0 cellpadding=5 bordercolor=black&gt;"  puts $fh1 "&lt;tr&gt;&lt;td&gt;Canal&lt;/td&gt;&lt;td&gt;Usuarios&lt;/td&gt;&lt;td&gt;Tуpico&lt;/td&gt;&lt;/tr&gt;"  close $fh1  set list_active 1  putlog "Listing channels..."  putserv "LIST"  return 0}# begin of channel listproc raw_321 {from key arg} {  global list_active list_data  if {$list_active} then {    putlog "Start of channel list."    set list_data ""  }  return 0}# channel listproc raw_322 {from key arg} {  global list_active list_data listfile  set fh [open $listfile a]  if {$list_active} then {    puts $fh "&lt;tr&gt;&lt;td&gt;"    puts $fh "[lindex [split $arg] 1]"    puts $fh "&lt;/td align=\"center\"&gt;"    puts $fh "&lt;td&gt;[lindex [split $arg] 2]&lt;/td&gt;"    set thestring [string trimright [lrange $arg 3 [llength $arg] ] ]    if {[string length $thestring] &gt; 0} {     set thestring2 [string range $thestring 1 [ string length $thestring]]    }    puts $fh "&lt;td&gt;"    puts $fh "[convstyle [ webify $thestring2 ] ] "    puts $fh "&lt;/td&gt;&lt;/tr&gt;"    lappend list_data [lindex [split $arg] 1]  }  close $fh  return 0}# end of channel listproc raw_323 {from key arg} {  global list_active listfile refresh  set fh2 [open $listfile a]  puts $fh2 "&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;"  close $fh2  if {$list_active} then {    putlog "End of channel list."    set list_active 0  }  utimer $refresh get_channels  return 0}bind raw -|- 321 raw_321bind raw -|- 322 raw_322bind raw -|- 323 raw_323#####putlog "Chanlist 1.00 by Merlin &lt;merlin@ebs.cl&gt;"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8573">crux</a> — Sat Jan 06, 2007 5:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2007-01-05T23:23:33-04:00</updated>

		<published>2007-01-05T23:23:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69494#p69494</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69494#p69494"/>
		<title type="html"><![CDATA[chanlist doesn't work]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69494#p69494"><![CDATA[
This looks like a script error, you'll have to paste the script also.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Fri Jan 05, 2007 11:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[crux]]></name></author>
		<updated>2007-01-05T14:42:18-04:00</updated>

		<published>2007-01-05T14:42:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69486#p69486</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69486#p69486"/>
		<title type="html"><![CDATA[chanlist doesn't work]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69486#p69486"><![CDATA[
Please help me, how to fix this error ?<br><br>error:<br><div class="codebox"><p>Code: </p><pre><code>[10:40] Start of channel list.[10:40] Tcl error [raw_322]: unmatched open quote in list[10:40] Tcl error [raw_322]: can't read "web_color(00)": no such element in array[10:40] Tcl error [raw_322]: list element in quotes followed by "!" instead of space[10:40] End of channel list.</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8573">crux</a> — Fri Jan 05, 2007 2:42 pm</p><hr />
]]></content>
	</entry>
	</feed>
