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

	<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>2006-08-08T19:13:59-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Kimmi]]></name></author>
		<updated>2006-08-08T19:13:59-04:00</updated>

		<published>2006-08-08T19:13:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65297#p65297</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65297#p65297"/>
		<title type="html"><![CDATA[irc2html thingy...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65297#p65297"><![CDATA[
Tosser^^  tywm it worked!! few bugs but sorted that out...<br>and<br>I see what you meen metroid, how do I make it only remove the last line and not reset the hole, when it gets to the "max line number I have set"<br><br>but, is it easy to implement a list of showing all people on the channel, and topic ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3560">Kimmi</a> — Tue Aug 08, 2006 7:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2006-08-08T17:54:10-04:00</updated>

		<published>2006-08-08T17:54:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65292#p65292</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65292#p65292"/>
		<title type="html"><![CDATA[irc2html thingy...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65292#p65292"><![CDATA[
What's the use of resetting the var (to nothing) after 5 lines when it's only flushed to the file every 30 seconds.<br><br>That basically only allows (the last) 5 lines that are said to be in the file, not much of a "irc2html" then.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Tue Aug 08, 2006 5:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2006-08-08T14:29:57-04:00</updated>

		<published>2006-08-08T14:29:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65284#p65284</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65284#p65284"/>
		<title type="html"><![CDATA[irc2html thingy...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65284#p65284"><![CDATA[
*UPDATED* (not tested)<br><div class="codebox"><p>Code: </p><pre><code>set 12h(chan) "#yourchannel"; channel to log set i2h(maxlines) "5"; # no of lines set i2h(refresh) "30"; # no of seconds set i2h(buffer) ""; # the buffer, dont touch set i2h(file) "/path/to/html/file.html"; # the html file if {![file exists $::i2h(file)]} {   set file [open $::i2h(file) w]; puts $file ""; close $file } bind pubm - "$::i2h(chan) *" i2h:log proc i2h:log {nickname hostname handle channel text} {   if {[llength $::i2h(buffer)] &gt;= $::i2h(maxlines)} {     set ::i2h(buffer) ""   }   lappend ::i2h(buffer) "$nickname $text" } proc i2h:update {} {   if {[catch { set file [open $::i2h(file) w] } err]} {     putlog "i2h file error: $err"   } else {     puts $file "&lt;html&gt;&lt;head&gt;&lt;title&gt;some title&lt;/title&gt;"     puts $file "&lt;meta http-equiv=\"refresh\" content=\"$sec\"&gt;"     puts $file "&lt;/head&gt;&lt;body&gt;"       foreach i $::i2h(buffer) {         puts $file "&lt;[lindex [split $i] 0]&gt; [lrange $i 1 end]&lt;br&gt;"       }     puts $file "&lt;/body&gt;&lt;/html&gt;"    close $file   }   utimer $::i2h(refresh) [list i2h:update] } i2h:update putlog "i2h (irc2html) loaded. Logging $::i2h(chan) to [lindex [split $::i2h(file) /] end]." </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Tue Aug 08, 2006 2:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2006-08-08T14:17:58-04:00</updated>

		<published>2006-08-08T14:17:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65282#p65282</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65282#p65282"/>
		<title type="html"><![CDATA[irc2html thingy...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65282#p65282"><![CDATA[
Seems like the updated script does'nt close the file at the end of the update... Would be my first bet..<br><br>As for your initial script, it did indeed print out nickname.. you just accidentally turned it into an (invalid) html-tag (check the source of the page you linked earlier)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Aug 08, 2006 2:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Kimmi]]></name></author>
		<updated>2006-08-08T14:05:14-04:00</updated>

		<published>2006-08-08T14:05:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65281#p65281</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65281#p65281"/>
		<title type="html"><![CDATA[irc2html thingy...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65281#p65281"><![CDATA[
okey, now the script starts and I get "i2h (irc2html) loaded"<br><br>but, now it dont print anything to file....<br>like haua.html is empty, something must be changes, cuz the initial code on the top, worked. only nick wasnt showing there.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3560">Kimmi</a> — Tue Aug 08, 2006 2:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2006-08-08T09:34:02-04:00</updated>

		<published>2006-08-08T09:34:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65276#p65276</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65276#p65276"/>
		<title type="html"><![CDATA[irc2html thingy...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65276#p65276"><![CDATA[
change<br><div class="codebox"><p>Code: </p><pre><code>puts $file "&lt;meta http-equiv=\"refresh\" content=\"$sec\"&gt;"</code></pre></div>to<br><div class="codebox"><p>Code: </p><pre><code>puts $file "&lt;meta http-equiv=\"refresh\" content=\"$::i2h(refresh)\"&gt;"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Tue Aug 08, 2006 9:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Kimmi]]></name></author>
		<updated>2006-08-08T08:34:48-04:00</updated>

		<published>2006-08-08T08:34:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65270#p65270</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65270#p65270"/>
		<title type="html"><![CDATA[irc2html thingy...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65270#p65270"><![CDATA[
okey...<br><blockquote class="uncited"><div>[13:29] can't read "sec": no such variable<br>    while executing<br>"puts $file "&lt;meta http-equiv=\"refresh\" content=\"$sec\"&gt;""<br>    (procedure "i2h:update" line 6)<br>    invoked from within<br>"i2h:update"<br>    (file "scripts/html2.tcl" line 35)<br>    invoked from within<br>"source scripts/html2.tcl<br>"</div></blockquote>It kinda looks like I need to set $sec as a time variable, how does one do that ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3560">Kimmi</a> — Tue Aug 08, 2006 8:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Kimmi]]></name></author>
		<updated>2006-08-08T08:28:09-04:00</updated>

		<published>2006-08-08T08:28:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65269#p65269</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65269#p65269"/>
		<title type="html"><![CDATA[irc2html thingy...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65269#p65269"><![CDATA[
thanx guys!<br><br>But I do get an error on line 11<div class="codebox"><p>Code: </p><pre><code>bind pubm - "$::i2h(chan) *" i2h:log </code></pre></div><blockquote class="uncited"><div>[13:26] can't read "::i2h(chan)": no such element in array<br>    while executing<br>"bind pubm - "$::i2h(chan) *" i2h:log"<br>    (file "scripts/html2.tcl" line 11)<br>    invoked from within<br>"source scripts/html2.tcl<br>"</div></blockquote>#FIXED# IT WAS A TYPO <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3560">Kimmi</a> — Tue Aug 08, 2006 8:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2006-08-07T19:47:57-04:00</updated>

		<published>2006-08-07T19:47:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65251#p65251</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65251#p65251"/>
		<title type="html"><![CDATA[irc2html thingy...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65251#p65251"><![CDATA[
Might be a good idea to escape &lt;&gt; around nicks, to that they're not mistaken for tags..  ie:<div class="codebox"><p>Code: </p><pre><code>...puts $file "&lt;[lindex $e 0]&gt; [lindex $e 1]&lt;br&gt;"...</code></pre></div>rather than<div class="codebox"><p>Code: </p><pre><code>...puts $file "&lt;[lindex $e 0]&gt; [lindex $e 1]&lt;br&gt;"...</code></pre></div>Would make one confused browser otherwize...<br><br><em class="text-italics">edit: Minor typo...</em><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Aug 07, 2006 7:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2006-08-07T19:58:19-04:00</updated>

		<published>2006-08-07T19:37:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65250#p65250</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65250#p65250"/>
		<title type="html"><![CDATA[irc2html thingy...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65250#p65250"><![CDATA[
Try this:<br><br>* code updated with nml375's improvement * <br><div class="codebox"><p>Code: </p><pre><code>set 12h(chan) "#yourchannel"; channel to logset i2h(maxlines) "5"; # no of linesset i2h(refresh) "30"; # no of secondsset i2h(buffer) ""; # the buffer, dont touchset i2h(file) "/path/to/html/file"; # the html fileif {![file exists $::i2h(file)]} {  set file [open $::i2h(file) w]; puts $file ""; close $file}bind pubm - "$::i2h(chan) *" i2h:logproc i2h:log {nickname hostname handle channel text} {  if {[llength $::i2h(buffer)] &gt;= $::i2h(maxlines)} {    set ::i2h(buffer) ""  }  lappend ::i2h(buffer) "$nickname $text"}proc i2h:update {} {  if {[catch { set file [open $::i2h(file) w] } err]} {    putlog "i2h file error: $err"  } else {    puts $file "&lt;html&gt;&lt;head&gt;&lt;title&gt;some title&lt;/title&gt;"    puts $file "&lt;meta http-equiv=\"refresh\" content=\"$sec\"&gt;"    puts $file "&lt;/head&gt;&lt;body&gt;"      foreach i $::i2h(buffer) {        puts $file "&lt;[lindex [split $i] 0]&gt; [lrange $i 1 end]&lt;br&gt;"      }    puts $file "&lt;/body&gt;&lt;/html&gt;"  }  utimer $::i2h(refresh) [list i2h:update]}i2h:updateputlog "i2h (irc2html) loaded"</code></pre></div>Not tested, but hopefully it should work<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Mon Aug 07, 2006 7:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2006-08-07T19:33:44-04:00</updated>

		<published>2006-08-07T19:33:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65249#p65249</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65249#p65249"/>
		<title type="html"><![CDATA[irc2html thingy...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65249#p65249"><![CDATA[
Rude <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Mon Aug 07, 2006 7:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Kimmi]]></name></author>
		<updated>2006-08-07T07:20:00-04:00</updated>

		<published>2006-08-07T07:20:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65228#p65228</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65228#p65228"/>
		<title type="html"><![CDATA[irc2html thingy...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65228#p65228"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set buf {}set maxlines 5 ;# linesset refresh 30 ;# secondsbind pubm - "#channel *" fooproc foo {n u h c t} {   if {[llength $::buf] == $::maxlines} {      set ::buf [lreplace $::buf 0 0]   }   lappend ::buf [list $n $t]}proc bar {sec} {   if ![catch {set fd [open /path/to/convo.html w]}] {      puts $fd "&lt;html&gt;&lt;head&gt;&lt;title&gt;some title&lt;/title&gt;"      puts $fd "&lt;meta http-equiv=\"refresh\" content=\"$sec\"&gt;"      puts $fd "&lt;/head&gt;&lt;body&gt;"      foreach e $::buf {         puts $fd "&lt;[lindex $e 0]&gt; [lindex $e 1]&lt;br&gt;"      }      puts $fd "&lt;/body&gt;&lt;/html&gt;"      close $fd   }   utimer $sec [list bar $sec]}bar $refresh </code></pre></div>okey I got this code and it looks like this:<br><a href="http://eggis.multinet.no/~lisemarie/haua.html" class="postlink">http://eggis.multinet.no/~lisemarie/haua.html</a><br><br>Is it hard to add who is saying what... like add the nick<br>and to make a list of all users in channel ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3560">Kimmi</a> — Mon Aug 07, 2006 7:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Kimmi]]></name></author>
		<updated>2006-08-07T07:04:32-04:00</updated>

		<published>2006-08-07T07:04:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65227#p65227</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65227#p65227"/>
		<title type="html"><![CDATA[irc2html thingy...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65227#p65227"><![CDATA[
Hello<br><br>I have been looking for a script that does a "screen" on a irc channel and makes a html file, including all users on channel and all chat and actions.<br><br>I tryed a script called irc2html.tcl, but its 8 years old and didnt support current eggdrop version. <br>Anyone that know of a newer version of this script?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3560">Kimmi</a> — Mon Aug 07, 2006 7:04 am</p><hr />
]]></content>
	</entry>
	</feed>
