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

	<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-07-19T17:00:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-07-19T17:00:57-04:00</updated>

		<published>2002-07-19T17:00:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9006#p9006</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9006#p9006"/>
		<title type="html"><![CDATA[.save and tcl help plz]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9006#p9006"><![CDATA[
Hi ppslim,<br>Thank you so much, it worked, but<br>+o-mn didn't work, don't know how  to get just Op list, no Master/owner<br><br>anyother suggestions plz<br><br>thanks<br>regards<br>AW<p>Statistics: Posted by Guest — Fri Jul 19, 2002 5:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-07-19T05:16:33-04:00</updated>

		<published>2002-07-19T05:16:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8983#p8983</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8983#p8983"/>
		<title type="html"><![CDATA[.save and tcl help plz]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8983#p8983"><![CDATA[
I think a match for +o-mn would do the matching (so the documentation states).<br><br>As for getting the host, using your example, you would<br><div class="codebox"><p>Code: </p><pre><code>foreach u [userlist -b+o $statchan] { set h [lindex [getuser $u HOSTS] 0]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Fri Jul 19, 2002 5:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-07-18T17:13:20-04:00</updated>

		<published>2002-07-18T17:13:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8971#p8971</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8971#p8971"/>
		<title type="html"><![CDATA[.save and tcl help plz]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8971#p8971"><![CDATA[
Sorry i think i had mixed up, well i am trying to make a opstat page from a userlist of the bot, where i wanna display their informations like<br>email, info..etc<br><br>but since mostly ppl in a userlist have multiple hosts, i want to display at site<br>handle!host&lt;--just one <br><br>foreach u [userlist -b+o $statchan] { <br>set h [getuser $u HOSTS] <br><br>but how do i use lindex, to get just one host??<br><br>and is there anyway i can just get +o users froma userlist, but no +m,+n<br><br>thanks<br>regards<br>AW<p>Statistics: Posted by Guest — Thu Jul 18, 2002 5:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-07-18T04:41:24-04:00</updated>

		<published>2002-07-18T04:41:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8945#p8945</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8945#p8945"/>
		<title type="html"><![CDATA[.save and tcl help plz]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8945#p8945"><![CDATA[
I failed to fully understand either of the 2 posts.<br><br>The code you presented did not make much sense to getting any nicknames or hosts.<br><br>You can get a list of handles hosts by using "getuser $handle HOSTS"<br><br>This will return a list of hosts, and you simply use "lindex" on it.<br><br>As for getting the most used, or the most reciently used. This is impossible, unless you create a script to track hostmask usage.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Jul 18, 2002 4:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-07-18T02:23:14-04:00</updated>

		<published>2002-07-18T02:23:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8942#p8942</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8942#p8942"/>
		<title type="html"><![CDATA[.save and tcl help plz]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8942#p8942"><![CDATA[
Hi, ok i figure out about hosts, but ops have multiple hosts in a userlist, is there anyway i can get one the most recent one or if not, then the first one in the list??? but still i couldn't figure out, how do i just display ops, no masters or owners??<br><br>thanks<br>regards<br>Aw<p>Statistics: Posted by Guest — Thu Jul 18, 2002 2:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-07-17T22:19:31-04:00</updated>

		<published>2002-07-17T22:19:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8939#p8939</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8939#p8939"/>
		<title type="html"><![CDATA[.save and tcl help plz]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8939#p8939"><![CDATA[
Thanks PPslim, it worked.<br><br>i will appreciate if you can help me, i am able to get a user name($u), but no luck to get a host, i wanted this format  Nick(host)<br>and want to display just ops, no master or owner, just wanna display userlist at site.<br><br>foreach u [userlist -b+o $statchan] { <br>if {![onchan [hand2nick $u $statchan] $statchan]} { <br>set ss [getuser $u LASTON] <br>if {$ss == 0} {set ss -} {set ss [ntime $ss]} <br>set e [getuser $u XTRA EMAIL] <br>if {$e == ""} {set e -} <br>set a [chattr $u $statchan] <br><br>Thanks a lot<br>regards<br>Aw<p>Statistics: Posted by Guest — Wed Jul 17, 2002 10:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-07-17T04:38:06-04:00</updated>

		<published>2002-07-17T04:38:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8923#p8923</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8923#p8923"/>
		<title type="html"><![CDATA[.save and tcl help plz]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8923#p8923"><![CDATA[
This is all related to your html writing code.<br><br>Notice how all the puts lines look like<br><br>EG<div class="codebox"><p>Code: </p><pre><code>puts $blah "&lt;font face="hello"&gt;And he said "Look at this"&lt;/font&gt;"</code></pre></div>You can't just use " in the text, as Tcl will interpret it as part of the command, rather than part of the string.<br><br>There are 2 ways around it.<br><br>1: Use ' rather than " inside the ""<br>2: Escape the characters.<br><br>2 examples<br><br>1:<div class="codebox"><p>Code: </p><pre><code>puts $blah "&lt;font face='hello'&gt;And he said 'Look at this'&lt;/font&gt;"</code></pre></div>2:<div class="codebox"><p>Code: </p><pre><code>puts $blah "&lt;font face=\"hello\"&gt;And he said \"Look at this\"&lt;/font&gt;"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Jul 17, 2002 4:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-07-17T01:52:54-04:00</updated>

		<published>2002-07-17T01:52:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8921#p8921</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8921#p8921"/>
		<title type="html"><![CDATA[.save and tcl help plz]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8921#p8921"><![CDATA[
Hi,<br><br>everytime i do .save in a partyline, i see the following<br>Tcl error in script for 'timer36816':<br>&lt;eggy&gt; [00:35] extra characters after close-quote, any help please?<br><br><br>Also i was working on stats for users, are known to the bot, like Ops.. but i try my best, couldn't figure out , why its not working, may be any expert can help me, please.<br><br>## THE VERSION OF THIS WEBWRITER<br>set wwver 1.0<br>set updatetimer 60<br>set wwpath "/home/aw/public_html"<br>set statchans "#testing"<br><br>proc write_status {} {<br>  global statchans<br>  foreach chan $statchans {ww_next $chan}<br>}<br>## THE MAIN PROC<br>proc ww_next {statchan} {<br>  global wwver updatetimer botnick wwpath<br>  if {$wwpath == ""} {set wf [open status_[string trim $statchan #].htm w]} else {set wf [open $wwpath/status_$statchan.htm w]}<br>  puts $wf "&lt;HTML&gt;"<br>  put  $wf "&lt;body bgcolor="#EEEEEE" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"&gt;"<br>  put $wf "&lt;table border="0" width="100%"&gt;"<br><br>  puts $wf "&lt;BR&gt;&lt;BR&gt;Recorded users:"<br>  puts $wf "&lt;BR&gt;"<br><br>  foreach u [userlist -b+ovf|ovf $statchan] {<br>    if {![onchan [hand2nick $u $statchan] $statchan]} {<br>      set ss [getuser $u LASTON]<br>      if {$ss == 0} {set ss -} {set ss [ntime $ss]}<br>      set e [getuser $u XTRA EMAIL]<br>      if {$e == ""} {set e -}<br>      set a [chattr $u $statchan]<br>      put $wf "&lt;tr&gt;"<br>      put $wf "       &lt;td&gt;&lt;img src="../images/spacer.gif" width="20"  height="1"&gt;&lt;/td&gt;"<br>      put $wf "       &lt;td colspan="2"&gt;"<br>      put $wf "         &lt;p class="head2"&gt;"<br>      put $wf "           $u            &lt;/p&gt;"<br>      put $wf "       &lt;/td&gt;"<br>      put $wf "    &lt;/tr&gt;"<br>      put $wf "     &lt;tr&gt;"<br>      put $wf "       &lt;td valign="top"&gt; &lt;/td&gt;"<br>      put $wf "       &lt;td valign="top"&gt;"<br>      put $wf "         &lt;p&gt;&lt;b&gt;Attr:&lt;/b&gt;&lt;/p&gt;"<br>      put $wf "       &lt;/td&gt;"<br>      put $wf "       &lt;td&gt;"<br>      put $wf "         &lt;p&gt;"<br>      put $wf "           $a    &lt;/p&gt;"<br>      put $wf "       &lt;/td&gt;"<br>      put $wf "     &lt;/tr&gt;"<br>      put $wf "     &lt;tr&gt;"<br>      put $wf "       &lt;td valign="top"&gt; &lt;/td&gt;"<br>      put $wf "       &lt;td valign="top"&gt; <br>      put $wf "         &lt;p&gt;&lt;b&gt;Laston:&lt;/b&gt;&lt;/p&gt;"<br>      put $wf "       &lt;/td&gt;"<br>      put $wf "       &lt;td&gt;"<br>      put $wf "         &lt;p class="description"&gt;"<br>      put $wf "           $ss       &lt;/p&gt;"<br>      put $wf "       &lt;/td&gt;"<br>      put $wf "     &lt;/tr&gt;"<br>      put $wf "     &lt;tr&gt;"<br>      put $wf "       &lt;td&gt; &lt;/td&gt;"<br>      put $wf "       &lt;td&gt;"<br>      put $wf "         &lt;p&gt; &lt;/p&gt;"<br>      put $wf "       &lt;/td&gt;"<br>      put $wf "       &lt;td&gt;"<br>      put $wf "         &lt;p&gt; &lt;/p&gt;"<br>      put $wf "       &lt;/td&gt;"<br>      put $wf "     &lt;/tr&gt;"<br>               <br>    }<br>  }<br>  <br>  puts $wf "&lt;/table&gt;&lt;/HTML&gt;"<br>  close $wf<br>  if {![texists write_status]} {utimer $updatetimer write_status}<br>}<br><br>## REMOVES THE YEAR FORMAT FROM THE DATE/TIME<br>proc ntime {time} {<br>  set v0 [lrange [ctime $time] 0 0]<br>  set v1 [lrange [ctime $time] 1 1]<br>  set v2 [lrange [ctime $time] 2 2]<br>  set v3 [lrange [ctime $time] 3 3]<br>  set v4 [lrange [ctime $time] 4 4]<br>  set v3 [lindex [split $v3 :] 0]:[lindex [split $v3 :] 1]<br>  return "$v0 $v1. $v2. ($v3)"<br>}<br><br># THIS CHECKS I THERE IS ALREADY A TIMER ASSIGNED TO UPDATE THE WEB FILE<br># !!! not similar to the timerexist-proc in all_tools.tcl !!!<br>proc texists {utimer_proc} {<br>  set y "0"<br>  foreach x [utimers] {<br>    if {[string match [lindex $x 1] $utimer_proc]} {set y "1"}<br>  }<br>  return $y<br>}<br><br># STARTS THE UPDATE TIMER<br>if {![texists write_status]} {utimer $updatetimer write_status}<br><br>putlog "WW $wwver by aw loaded.."<br><br>I will apprecite for your kind help<br>thanks<br>regards<br>Aw<p>Statistics: Posted by Guest — Wed Jul 17, 2002 1:52 am</p><hr />
]]></content>
	</entry>
	</feed>
