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

	<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-09-23T04:44:19-04:00</updated>

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

		<entry>
		<author><name><![CDATA[oxygen]]></name></author>
		<updated>2007-09-23T04:44:19-04:00</updated>

		<published>2007-09-23T04:44:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76156#p76156</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76156#p76156"/>
		<title type="html"><![CDATA[trivial.tcl html output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76156#p76156"><![CDATA[
Hello mr_fanatic<br><br>Try this:<div class="codebox"><p>Code: </p><pre><code>  set _op ""; set _vo ""; set _reg "";  foreach nick [lsort [chanlist $tgchan]] {   if {[isop $nick $tgchan]} {   lappend _op $nick   } elseif {[isvoice $nick $tgchan]} {   lappend _vo $nick   } else {   lappend _reg $nick   } }   set _chanlist [join "$_op $_vo $_reg"]foreach nick $_chanlist {          puts $_file "   &lt;tr&gt;"          puts $_file "    &lt;td&gt;[expr [isop $nick $tgchan]?"@":""][expr [isvoice $nick $tgchan]?"+":""]$nick[expr [string match $nick $botnick]?" (that's me!)":""]&lt;/td&gt;"          if {[info exists tgscoresbyname([strlwr $nick])]} {             puts $_file "    &lt;td&gt;$tgscoresbyname([strlwr $nick])&lt;/td&gt;"          } else {             puts $_file "    &lt;td&gt;-&lt;/td&gt;"          }          if {[info exists tgranksbyname([strlwr $nick])]} {             puts $_file "    &lt;td&gt;$tgranksbyname([strlwr $nick])&lt;/td&gt;"          } else {             puts $_file "    &lt;td&gt;-&lt;/td&gt;"          }          puts $_file "   &lt;td&gt;[expr [getchanidle $nick $tgchan]&gt;10?"[getchanidle $nick $tgchan]m":"-"]&lt;/td&gt;"          puts $_file "   &lt;/tr&gt;"       }</code></pre></div>Regards,<br>werner<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6688">oxygen</a> — Sun Sep 23, 2007 4:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2007-09-02T13:30:32-04:00</updated>

		<published>2007-09-02T13:30:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75626#p75626</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75626#p75626"/>
		<title type="html"><![CDATA[trivial.tcl html output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75626#p75626"><![CDATA[
Can you give me the url of the html file/log.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Sun Sep 02, 2007 1:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mr_fanatic]]></name></author>
		<updated>2007-09-02T07:25:12-04:00</updated>

		<published>2007-09-02T07:25:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75622#p75622</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75622#p75622"/>
		<title type="html"><![CDATA[trivial.tcl html output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75622#p75622"><![CDATA[
it works but gives output like this:<br><br>@nick1 @nick2 @nick3 +nick4 +nick4 etc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9267">mr_fanatic</a> — Sun Sep 02, 2007 7:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2007-08-31T11:22:56-04:00</updated>

		<published>2007-08-31T11:22:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75590#p75590</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75590#p75590"/>
		<title type="html"><![CDATA[trivial.tcl html output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75590#p75590"><![CDATA[
You could try something like this, bare in mind its not tested:<div class="codebox"><p>Code: </p><pre><code>set op ""set voice ""set reg ""foreach nick [lsort [chanlist $tgchan]] {        if {$nick == ""} { return }        set line1 "    &lt;td&gt;-&lt;/td&gt;"        set line2 "    &lt;td&gt;-&lt;/td&gt;"        if {[info exists tgscoresbyname([string tolower $nick])]} {            set line1 "    &lt;td&gt;$tgscoresbyname([string tolower $nick])&lt;/td&gt;"        }        if {[info exists tgranksbyname([string tolower $nick])]} {            set line2 "    &lt;td&gt;$tgranksbyname([string tolower $nick])&lt;/td&gt;"        }        if {[isop $nick $tgchan]} {            lappend op "   &lt;tr&gt;\n@$nick\n$line1\n$line2\n   &lt;td&gt;[expr [getchanidle $nick $tgchan]&gt;10?"[getchanidle $nick $tgchan]m":"-"]&lt;/td&gt;\n   &lt;/tr&gt;"        } elseif {[isvoice $nick $tgchan]} {            lappend voice "   &lt;tr&gt;\n+$nick\n$line1\n$line2\n   &lt;td&gt;[expr [getchanidle $nick $tgchan]&gt;10?"[getchanidle $nick $tgchan]m":"-"]&lt;/td&gt;\n   &lt;/tr&gt;"        } else {            lappend reg "   &lt;tr&gt;\n$nick\n$line1\n$line2\n   &lt;td&gt;[expr [getchanidle $nick $tgchan]&gt;10?"[getchanidle $nick $tgchan]m":"-"]&lt;/td&gt;\n   &lt;/tr&gt;"        }}foreach line "[join "$op $voice $reg" "\n"]" {        if {$line == ""} { return }            puts $_file "$line"        }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Fri Aug 31, 2007 11:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mr_fanatic]]></name></author>
		<updated>2007-08-31T04:16:12-04:00</updated>

		<published>2007-08-31T04:16:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75577#p75577</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75577#p75577"/>
		<title type="html"><![CDATA[trivial.tcl html output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75577#p75577"><![CDATA[
Greetings egg lovers,<br><br>I've been using this tcl (trivia.tcl v1.3.4 by Graeme Donaldson) for 2 years and works perfectly fine till now. But i have problem regarding the HTML output generated by the tcl. When generating, it gives the output mixing the @ops, normal ops and voices nick. What i mean is, how can the tcl be modified in such a way that it will displayed as the example i've given below:<br><br><strong class="text-strong">Nick</strong>  <strong class="text-strong">Score</strong>    <strong class="text-strong">Rank</strong>  <strong class="text-strong">Idle</strong><br><br>@nick1 7364  14  1m<br>@nick2  -        -    5m<br>@nick3  786   76   10m<br>+nick4  76    99   50m<br>+nick5  - - -<br>normalnick1 768  67 20m<br>normalnick2  -    -    -<br>normalnick3  -    -      -<br>normalnick4 76776 4 80m<br>normalnick5 -  -   -<br>normalnick6 - -  -<br>etc.<br><br>that is, the @OP's nick at the 1st, Voices nick at the second and normal nick on the bottom. Here is the original html part of the tcl.<br><div class="codebox"><p>Code: </p><pre><code>foreach nick [lsort [chanlist $tgchan]] {puts $_file "   &lt;tr&gt;"puts $_file "    &lt;td&gt;[expr [isop $nick $tgchan]?"@":""][expr [isvoice $nick $tgchan]?"+":""]$nick[expr [string match $nick $botnick]?" (that's me!)":""]&lt;/td&gt;"if {[info exists tgscoresbyname([strlwr $nick])]} {puts $_file "    &lt;td&gt;$tgscoresbyname([strlwr $nick])&lt;/td&gt;"} else {puts $_file "    &lt;td&gt;-&lt;/td&gt;"}if {[info exists tgranksbyname([strlwr $nick])]} {puts $_file "    &lt;td&gt;$tgranksbyname([strlwr $nick])&lt;/td&gt;"} else {puts $_file "    &lt;td&gt;-&lt;/td&gt;"}puts $_file "   &lt;td&gt;[expr [getchanidle $nick $tgchan]&gt;10?"[getchanidle $nick $tgchan]m":"-"]&lt;/td&gt;"puts $_file "   &lt;/tr&gt;"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9267">mr_fanatic</a> — Fri Aug 31, 2007 4:16 am</p><hr />
]]></content>
	</entry>
	</feed>
