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

	<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>2012-02-03T12:15:17-04:00</updated>

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

		<entry>
		<author><name><![CDATA[loulou7593]]></name></author>
		<updated>2012-02-03T12:15:17-04:00</updated>

		<published>2012-02-03T12:15:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98705#p98705</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98705#p98705"/>
		<title type="html"><![CDATA[Problem nick list html]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98705#p98705"><![CDATA[
Hello<br><br>I would have liked to know if somebody could help me to make the same thing but for two channels?<br><br>There that functions well for the channel #accueil, but I would like that makes me also a list for the channel #game<br><br>As that I could have the list of the two channels on the same page<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9849">loulou7593</a> — Fri Feb 03, 2012 12:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2012-02-01T13:49:28-04:00</updated>

		<published>2012-02-01T13:49:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98680#p98680</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98680#p98680"/>
		<title type="html"><![CDATA[Problem nick list html]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98680#p98680"><![CDATA[
Your problem lies in the<em class="text-italics"> list:log </em>proc<div class="codebox"><p>Code: </p><pre><code>else {            lappend ::v(op) $cnick        } </code></pre></div>probably just a typo, but I am guessing it should be:<div class="codebox"><p>Code: </p><pre><code>else {            lappend ::u(nop) $cnick        }</code></pre></div>you were in fact putting all the people not voice, halfop or op into a list which were never used.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Wed Feb 01, 2012 1:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[loulou7593]]></name></author>
		<updated>2012-02-01T07:07:29-04:00</updated>

		<published>2012-02-01T07:07:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98674#p98674</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98674#p98674"/>
		<title type="html"><![CDATA[Problem nick list html]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98674#p98674"><![CDATA[
Hello,<br><br>I think that there are minor problems because when a person join Channel that immediately does not write the name of the person in the file, on the other hand the meter works well.<br><br>Example: <br>on Chanel there are already the following people.<br>Niubot40<br>Ludo<br><br>the page indicates 2 people on the channel, but she writes that only one person on the page.<br><br>then if Cindy75 join the channel, the page indicates 3 people on the channel, but there is always that the name of only one person written on the page.<br><br>and only if another person join the channel, there the page indicates 4 people on the channel and she writes the name of 2 people. The name of the 2 first people who were already on the channel.<br><br>I think that the meter of people functions, but that there is a problem for the writing of the names of the people when it join, part or quit the channel.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9849">loulou7593</a> — Wed Feb 01, 2012 7:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[loulou7593]]></name></author>
		<updated>2012-01-31T19:18:32-04:00</updated>

		<published>2012-01-31T19:18:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98673#p98673</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98673#p98673"/>
		<title type="html"><![CDATA[Problem nick list html]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98673#p98673"><![CDATA[
ah ok sorry I had not included/understood. I will look at page Internet<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9849">loulou7593</a> — Tue Jan 31, 2012 7:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2012-01-31T19:13:43-04:00</updated>

		<published>2012-01-31T19:13:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98672#p98672</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98672#p98672"/>
		<title type="html"><![CDATA[Problem nick list html]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98672#p98672"><![CDATA[
As I said, add the proper CSS to your html document.<br><br><a href="http://www.w3schools.com/css/css_table.asp" class="postlink">http://www.w3schools.com/css/css_table.asp</a> might be a good start.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Jan 31, 2012 7:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[loulou7593]]></name></author>
		<updated>2012-01-31T17:49:26-04:00</updated>

		<published>2012-01-31T17:49:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98671#p98671</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98671#p98671"/>
		<title type="html"><![CDATA[Problem nick list html]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98671#p98671"><![CDATA[
here what I would like to do<br><br><img src="http://loulou.hosting-free.be/capturer.jpg" class="postimage" alt="Image">[/img]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9849">loulou7593</a> — Tue Jan 31, 2012 5:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2012-01-31T17:36:06-04:00</updated>

		<published>2012-01-31T17:36:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98670#p98670</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98670#p98670"/>
		<title type="html"><![CDATA[Problem nick list html]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98670#p98670"><![CDATA[
I just checked the source, and all the nicknames are in a table, one table row for each nick. If you are looking for some table borders, I suggest you setup the proper CSS for it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Jan 31, 2012 5:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[loulou7593]]></name></author>
		<updated>2012-01-31T17:29:24-04:00</updated>

		<published>2012-01-31T17:29:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98669#p98669</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98669#p98669"/>
		<title type="html"><![CDATA[Problem nick list html]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98669#p98669"><![CDATA[
afflicted I am French and my English is not very good lol<br><br>pseudo = nick <br><br>look at this page, it is currently what the code of front gives me <a href="http://loulou.hosting-free.be/liste.html" class="postlink">http://loulou.hosting-free.be/liste.html</a> <br><br>I would like to know if it is possible to have the people who are connected in a table?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9849">loulou7593</a> — Tue Jan 31, 2012 5:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2012-01-31T17:13:10-04:00</updated>

		<published>2012-01-31T17:13:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98668#p98668</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98668#p98668"/>
		<title type="html"><![CDATA[Problem nick list html]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98668#p98668"><![CDATA[
I'm sorry, but I have no idea whatsoever what you are talking about with "psuedos". As for table, if you are talking 'bout a html-table, your current code should already be creating a table with nicknames.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Jan 31, 2012 5:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[loulou7593]]></name></author>
		<updated>2012-01-31T16:42:50-04:00</updated>

		<published>2012-01-31T16:42:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98667#p98667</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98667#p98667"/>
		<title type="html"><![CDATA[Problem nick list html]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98667#p98667"><![CDATA[
thank you nml375 <br><br>it is impeccable <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>I would like to know if it is possible to integrate a table around the pseudos ?<br><br>but the problem is that basic one does not know the number of pseudos connected. Thus how to define a table?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9849">loulou7593</a> — Tue Jan 31, 2012 4:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2012-01-31T15:49:19-04:00</updated>

		<published>2012-01-31T15:49:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98666#p98666</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98666#p98666"/>
		<title type="html"><![CDATA[Problem nick list html]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98666#p98666"><![CDATA[
That would be this line (in save:log):<div class="codebox"><p>Code: </p><pre><code>$ulist = ""</code></pre></div>That is not the proper syntax for setting variables in tcl; the proper way is like follows:<div class="codebox"><p>Code: </p><pre><code>set ulist ""</code></pre></div>Checking further, there are several other, similar issues, such as this one:<div class="codebox"><p>Code: </p><pre><code>append $ulist "&lt;tr&gt;&lt;td style='color:red;'&gt;@$nick&lt;/td&gt;&lt;/tr&gt;\n"</code></pre></div>You don't want to do a variable substitution on ulist here, so don't prefix the variable name with $:<div class="codebox"><p>Code: </p><pre><code>append ulist "&lt;tr&gt;&lt;td style='color:red;'&gt;@$nick&lt;/td&gt;&lt;/tr&gt;\n"</code></pre></div>The same applies to other similar lines.<br><br>Further, comparing nicknames with ::botnick is not the best way to check if it's the bot itself or not, as it's a case-sensitive match. Instead, use the isbotnick command.<div class="codebox"><p>Code: </p><pre><code>if {$nick != $::botnick} {...</code></pre></div>Would be<div class="codebox"><p>Code: </p><pre><code>if {![isbotnick $nick]} {...</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Jan 31, 2012 3:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[loulou7593]]></name></author>
		<updated>2012-01-31T15:39:02-04:00</updated>

		<published>2012-01-31T15:39:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98665#p98665</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98665#p98665"/>
		<title type="html"><![CDATA[Problem nick list html]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98665#p98665"><![CDATA[
I thus tested with the two codes<br><div class="codebox"><p>Code: </p><pre><code>set tpl [read $fi]</code></pre></div>and <br><div class="codebox"><p>Code: </p><pre><code>set tpl [read -nonewline $fi]</code></pre></div>and I have this error in partyline now<br><div class="codebox"><p>Code: </p><pre><code>Tcl error [list:join]: can't read "ulist": no such variable</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9849">loulou7593</a> — Tue Jan 31, 2012 3:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2012-01-31T15:22:58-04:00</updated>

		<published>2012-01-31T15:22:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98662#p98662</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98662#p98662"/>
		<title type="html"><![CDATA[Problem nick list html]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98662#p98662"><![CDATA[
You've got an extra argument on the third line in save:log:<div class="codebox"><p>Code: </p><pre><code>set tpl [read $fi -nonewline $fi]</code></pre></div>I'm not sure if you need the -nonewline option, in any case the line should be one of the below (depending on whether you do need the -nonewline option)<div class="codebox"><p>Code: </p><pre><code>set tpl [read $fi]</code></pre></div>or<div class="codebox"><p>Code: </p><pre><code>set tpl [read -nonewline $fi]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Jan 31, 2012 3:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[loulou7593]]></name></author>
		<updated>2012-01-31T15:18:50-04:00</updated>

		<published>2012-01-31T15:18:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98660#p98660</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98660#p98660"/>
		<title type="html"><![CDATA[Problem nick list html]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98660#p98660"><![CDATA[
Hello all<br><br>I would like a tcl to create a nick list in a file HTML<br>here what I have<br><div class="codebox"><p>Code: </p><pre><code>############################################## nick list ##############################################set canal "#accueil"set fsource "/home/loulou/liste.tpl"set fichier "/home/loulou/public_html/liste.html"bind join - "$canal *" list:joinbind part - "$canal *" list:partbind sign - "$canal *" list:quitproc list:join {nick uhost handle chan} { list:log; }proc list:part {nick uhost handle chan text} {    if {$nick != $::botnick} { list:log; }}proc list:quit {nick uhost handle chan text} {    if {$nick != $::botnick} { list:log; }}proc list:log {} {   set ::u(op) {}   set ::u(hop) {}   set ::u(vop) {}   set ::u(nop) {}   set ::count 0    foreach cnick [chanlist $::canal] {        if { $cnick == $::botnick } { continue; }        incr ::count        if { [isop $cnick $::canal] == 1 } {            lappend ::u(op) $cnick        } elseif { [ishalfop $cnick $::canal] == 1 } {            lappend ::u(hop) $cnick        } elseif { [isvoice $cnick $::canal] == 1 } {            lappend ::u(vop) $cnick        } else {            lappend ::v(op) $cnick        }    }    save:log}proc save:log {} {   set fp [open $::fichier w]   set fi [open $::fsource r]   set tpl [read $fi -nonewline $fi]   close $fi   $ulist = ""   foreach nick $::u(op) {       append $ulist "&lt;tr&gt;&lt;td style='color:red;'&gt;@$nick&lt;/td&gt;&lt;/tr&gt;\n"   }   foreach nick $::u(hop) {      append $ulist "&lt;tr&gt;&lt;td style='color:blue;'&gt;%$nick&lt;/td&gt;&lt;/tr&gt;\n"   }   foreach nick $::u(vop) {      append $ulist "&lt;tr&gt;&lt;td style='color:yellow;'&gt;+$nick&lt;/td&gt;&lt;/tr&gt;\n"   }   foreach nick $::u(nop) {      append $ulist "&lt;tr&gt;&lt;td style='color:green;'&gt;$nick&lt;/td&gt;&lt;/tr&gt;\n"   }   regsub -all %count $tpl $::count tpl   regsub -all %channel $tpl $::canal tpl   regsub -all %list $tpl $ulist tpl   fputs $fp $tpl   close $fp}</code></pre></div>and the file template to be put in /home/loulou/liste.tpl<br><div class="codebox"><p>Code: </p><pre><code>&lt;html&gt;&lt;head&gt;&lt;title&gt;Les %count connectés sur %channel&lt;/title&gt;&lt;style&gt;body { background-color: black; }&lt;/style&gt;&lt;/head&gt;&lt;body&gt;&lt;table&gt;    &lt;tr&gt;&lt;th&gt;Il y a %count personnes sur %channel&lt;/th&gt;&lt;/tr&gt;    %list&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;</code></pre></div>that should create me a file HTML with the names of the members color with a bottom of black screen<br><br>but I have this error in partyline<br><div class="codebox"><p>Code: </p><pre><code> Tcl error [list:join]: wrong # args: should be "read channelId ?numChars?" or "read ?-nonewline? channelId"</code></pre></div>somebody can help me please ??<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9849">loulou7593</a> — Tue Jan 31, 2012 3:18 pm</p><hr />
]]></content>
	</entry>
	</feed>
