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

	<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-10-28T19:45:50-04:00</updated>

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

		<entry>
		<author><name><![CDATA[fredvil]]></name></author>
		<updated>2006-10-28T19:45:50-04:00</updated>

		<published>2006-10-28T19:45:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67490#p67490</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67490#p67490"/>
		<title type="html"><![CDATA[web poster script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67490#p67490"><![CDATA[
thanks a lot Sir_Fz<br><br>you're the MAN! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>more power egghelp.org<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7056">fredvil</a> — Sat Oct 28, 2006 7:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-10-28T09:34:12-04:00</updated>

		<published>2006-10-28T09:34:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67476#p67476</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67476#p67476"/>
		<title type="html"><![CDATA[web poster script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67476#p67476"><![CDATA[
Missing parameter in proc www_part<div class="codebox"><p>Code: </p><pre><code>proc www_part {nick host hand channel} {</code></pre></div>should be<div class="codebox"><p>Code: </p><pre><code>proc www_part {nick host hand channel arg} {</code></pre></div><blockquote class="uncited"><div>PART (stackable)<br>         bind part &lt;flags&gt; &lt;mask&gt; &lt;proc&gt;<br>         procname &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;channel&gt; &lt;msg&gt;<br><br>         Description: triggered by someone leaving the channel. The mask is<br>           matched against "#channel nick!user@host" and can contain<br>           wildcards. If no part message is specified, msg will be set<br>           to "".<br><br>           New Tcl procs should be declared as<br>             proc partproc {nick uhost hand chan {msg ""}} { ... }<br>           for compatibility.<br>         Module: irc</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Oct 28, 2006 9:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[fredvil]]></name></author>
		<updated>2006-10-28T09:04:35-04:00</updated>

		<published>2006-10-28T09:04:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67474#p67474</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67474#p67474"/>
		<title type="html"><![CDATA[web poster script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67474#p67474"><![CDATA[
pls help me with web poster script, a script that sends/converts IRC activity to html... it works except with part, when someone parts on channel it doesn't appear on the web and got this error msg on the bot: <br><br>Tcl error [www_part]: wrong # args: should be "www_part nick host hand channel"<br><br>this is the code:<br><div class="codebox"><p>Code: </p><pre><code>##############################################################################                                                                           ##                     --== Wacko's Web Poster Mod ==--                      ##                         --== Writen by Wacko ==--                         ##                                Version 1.9                                ##                               With Pictures                               ##                                                                           ##                    --== TCL is for eggdrop 1.3.18+ ==--                   ##                                                                           ###############################################################################                    --== (c)  Nutzville 1994 - 1999 ==--                   ##                                                                           ## I wrote because all the others sux... and never support multi channel...  ##                                                                           ## It is real simple. I wrote it. You use it. And if for some reason it      ## trashes you bot that is your fault because it works....                   ##                                                                           ## This script was beta tested for 4 weeks before release...                 ## As to microshit this WILL NOT work with win eggies...                     ##                                                                           ###############################################################################                                                                           ## Ver 1.5                                                                   ## This version worked but there were things I didn't like...                ## It did the multi channel and moved images and set the menu either from    ## A config file or does a standard one if the file is not there...          ## This version Does the pictures and the whole set...                       ##                                                                           ## Ver 1.6                                                                   ## This had the added feature of simple mirc color....                       ## But not Back Ground Color....                                             ##                                                                           ## Ver 1.7                                                                   ## This version supports all the above and full mirc color. also Back Ground ##                                                                           ## Ver 1.8                                                                   ## Add link to ftp and html typed in the channel....                         ##                                                                           ## Ver 1.9                                                                   ## Ok the Whois go dropped but now there is a chat ability.. oh well...      ##                                                                           ###############################################################################             --== Delete the next line and edit the config ==--            ## die "You *must* edit webposter.1.9.tcl for it to work."##############################################################################                         --== Configure Here ==--                          ################################################################################ -=&gt; Set the location on the UNIX computer where your www dir is located #  -&gt; Remember the / at the end....set www_location "/home/ctlife/public_html/wwwlive/"## -=&gt; Number of Lines Before Reloading Clean Fileset www_max 75## -=&gt; The IRC Networkset www_network "undernet"## -=&gt; Main Menu HTML (if blank there will be no page)set menu "menu.html"## -=&gt; Set Color Settings for Web pages# -&gt; Back Ground Color set www_bgcolor "White"## -&gt; Back Ground Image (if none leave blank -&gt; "")set bgimage "images/whites.jpg"## -&gt; Back Ground Properties (if not fixed leave blank -&gt; "")set bgset "fixed"## -&gt; Text Color set www_text "Black"## -&gt; Link Color set lcolor "Navy"## -&gt; Op Color for list set ocolor "Red"## -&gt; Voice Color for list set vcolor "Blue"## -&gt; Color For Chatset cchat "Navy Blue"## -&gt; Color For Joinset cjoin "Dark Yellow"## -&gt; Color For Partset cpart "Dark Green"## -&gt; Color For Kickset ckick "Red"## -&gt; Color For Modeset cmode "Red"## -=&gt; Set the Type of Fontset font "Arial"## -=&gt; Set the Size of Fontset fsize "2"## -=&gt; Enable Pictures ( 0 = off || 1 = on ) # For this to work you must put the Images in the scripts location# or copy them to the www_locationset pix 1#set smile "=) :) 8)"set frown "=( :( 8("set talk  "=O :O 8O"###############################################################################              --== If you change it I know it won't work ==--              ##############################################################################proc www_pubm {nick uhost hand channel args} {  global www_location www_lines pix smile frown talk cchat font fsize  set chan [string trimleft [string tolower $channel] #]  www_newfile $chan  set text [lindex $args 0]  set text [www_color "$text" "pubm"]  if {$pix == 1} {    foreach img $smile {      set i [lsearch $text $img]      if { $i &gt;= 0 } {set text [lreplace $text $i $i &lt;img src=smile.gif&gt;]}    }    foreach img $frown {      set i [lsearch $text $img]      if { $i &gt;= 0 } {set text [lreplace $text $i $i &lt;img src=frown.gif&gt;]}    }    foreach img $talk {      set i [lsearch $text $img]      if { $i &gt;= 0 } {set text [lreplace $text $i $i &lt;img src=talk.gif&gt;]}    }  }    set www_file ${www_location}${chan}_chat.html  set wc [open $www_file a]  puts $wc "&lt;table cellspacing=0 cellpadding=0 border=0&gt;&lt;tr&gt;&lt;td&gt;&lt;font face=\"$font\" size=\"$fsize\"&gt;&lt;b&gt;&lt;Font color=\"$cchat\"&gt;\&lt;&lt;/Font&gt;&lt;/b&gt;$nick&lt;b&gt;&lt;Font color=\"$cchat\"&gt;&gt;&lt;/Font&gt;&lt;/b&gt; $text&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;"  close $wc  incr www_lines([string tolower $chan])}proc www_action {nick uhost hand dest key args} {  global www_location www_lines pix smile frown talk cchat font fsize botnick  if {$dest != $botnick} {    set chan [string trimleft [string tolower $dest] #]    www_newfile $chan    set text [lindex $args 0]    set text [www_color "$text" "act"]    if {$pix == 1} {      foreach img $smile {        set i [lsearch $text $img]        if { $i &gt;= 0 } {set text [lreplace $text $i $i &lt;img src=smile.gif&gt;]}      }      foreach img $frown {        set i [lsearch $text $img]        if { $i &gt;= 0 } {set text [lreplace $text $i $i &lt;img src=frown.gif&gt;]}      }      foreach img $talk {        set i [lsearch $text $img]        if { $i &gt;= 0 } {set text [lreplace $text $i $i &lt;img src=talk.gif&gt;]}      }    }      set www_file ${www_location}${chan}_chat.html    set wc [open $www_file a]    puts $wc "&lt;table cellspacing=0 cellpadding=0 border=0&gt;&lt;tr&gt;&lt;td&gt;&lt;font face=\"$font\" size=\"$fsize\"&gt;&lt;b&gt;&lt;Font color=\"Red\"&gt;\ \§ &lt;/Font&gt;$nick&lt;/b&gt; $text&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;"    close $wc    incr www_lines([string tolower $chan])  }}proc www_join {nick host hand channel} {  global www_location www_lines cjoin font fsize botnick  if {[string tolower $nick] == [string tolower $botnick]} {    foreach chan [channels] {      foreach nick [chanlist $chan] {        putserv "WHOIS $nick"      }    }      www_setup  } else {    putserv "WHOIS $nick"      set chan [string trimleft [string tolower $channel] #]    www_newfile $chan    set www_file ${www_location}${chan}_chat.html    set wc [open $www_file a]    puts $wc "&lt;font face=\"$font\" size=\"$fsize\"&gt;&lt;b&gt;&lt;Font color=\"$cjoin\"&gt;-=&gt;&lt;/Font&gt;&lt;/b&gt; $nick ($host) has joined $chan&lt;/font&gt;&lt;br&gt;"    close $wc    www_user $chan    incr www_lines([string tolower $chan])  }}proc www_part {nick host hand channel} {  global www_location www_lines cpart font fsize  set chan [string trimleft [string tolower $channel] #]  www_newfile $chan  set www_file ${www_location}${chan}_chat.html  set wc [open $www_file a]  puts $wc "&lt;font face=\"$font\" size=\"$fsize\"&gt;&lt;b&gt;&lt;Font color=\"$cpart\"&gt;-=&gt;&lt;/Font&gt;&lt;/b&gt; $nick ($host) has left $chan&lt;/font&gt;&lt;br&gt;"  close $wc  www_user $chan  incr www_lines([string tolower $chan])}proc www_sign {nick host hand channel args} {  global www_location www_lines font fsize  set chan [string trimleft [string tolower $channel] #]  www_newfile $chan  set text [lindex $args 0]  set text [www_color "$text" "sign"]  set www_file ${www_location}${chan}_chat.html  set wc [open $www_file a]  puts $wc "&lt;table cellspacing=0 cellpadding=0 border=0&gt;&lt;tr&gt;&lt;td&gt;&lt;font face=\"$font\" size=\"$fsize\"&gt;&lt;b&gt;-=&gt;&lt;/b&gt; $nick ($host) has quit irc ($text)&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;"  close $wc  www_user $chan  incr www_lines([string tolower $chan])}proc www_topc {nick host hand channel topc} {  global www_location www_lines font fsize  set chan [string trimleft [string tolower $channel] #]  www_newfile $chan  set topc [www_color "$topc" "topc"]  set www_file ${www_location}${chan}_chat.html  set wc [open $www_file a]  puts $wc "&lt;table cellspacing=0 cellpadding=0 border=0&gt;&lt;tr&gt;&lt;td&gt;&lt;font face=\"$font\" size=\"$fsize\"&gt;&lt;b&gt;-=&gt;&lt;/b&gt; $nick has changed the topic on $chan to $topc&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;"  close $wc  www_title $chan  incr www_lines([string tolower $chan])}proc www_mode {nick host hand chan change mc} {www_mode2 $nick $host $hand $chan "$change $mc"}proc www_mode2 {nick host hand channel mc} {  global www_location www_lines cmode font fsize  set chan [string trimleft [string tolower $channel] #]  www_newfile $chan  set www_file ${www_location}${chan}_chat.html  set wc [open $www_file a]  puts $wc "&lt;font face=\"$font\" size=\"$fsize\"&gt;&lt;b&gt;&lt;Font color=\"$cmode\"&gt;-=&gt;&lt;/font&gt;&lt;/b&gt; Mode change $mc on $chan by $nick&lt;/font&gt;&lt;br&gt;"  close $wc  www_user $chan  incr www_lines([string tolower $chan])}proc www_kick {nick host hand channel kn kr} {  global www_location www_lines pix ckick font fsize  set chan [string trimleft [string tolower $channel] #]  www_newfile $chan  set www_file ${www_location}${chan}_chat.html  set wc [open $www_file a]  set kr [www_color "$kr" "kick"]  if {$pix == 1} {    puts $wc "&lt;table cellspacing=0 cellpadding=0 border=0&gt;&lt;tr&gt;&lt;td&gt;&lt;font face=\"$font\" size=\"$fsize\"&gt;&lt;img src=kick.gif&gt; $kn has been kicked off $chan by $nick ($kr)&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;"  } else {    puts $wc "&lt;table cellspacing=0 cellpadding=0 border=0&gt;&lt;tr&gt;&lt;td&gt;&lt;font face=\"$font\" size=\"$fsize\"&gt;&lt;b&gt;&lt;Font color=\"$ckick\"&gt;-=&gt;&lt;/font&gt;&lt;/b&gt; $kn has been kicked off $chan by $nick ($kr)&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;"  }    close $wc  www_user $chan  incr www_lines([string tolower $chan])}proc www_nick {nick host hand channel newnick} {  global www_location www_lines font fsize  putserv "WHOIS $newnick"  set chan [string trimleft [string tolower $channel] #]  www_newfile $chan  set www_file ${www_location}${chan}_chat.html  set wc [open $www_file a]  puts $wc "&lt;font face=\"$font\" size=\"$fsize\"&gt;&lt;b&gt;-=&gt;&lt;/b&gt; &lt;b&gt;$nick&lt;/b&gt; is now known as &lt;b&gt;$newnick&lt;/b&gt;&lt;/font&gt;&lt;br&gt;"  close $wc  www_user $chan  incr www_lines([string tolower $chan])}proc www_newfile {chan} {  global www_lines www_location www_max  if {$www_lines([string tolower $chan]) &gt; $www_max} {    www_chat $chan    set www_lines([string tolower $chan]) 0  }}proc www_setup {} {  global www_location www_lines menu pix botnick  global bgset bgimage www_bgcolor www_text lcolor www_network    www_init    if {$pix == 1} {move_files}    if {$menu != "" } {www_menu}      foreach channel [channels] {  set chan [string trimleft [string tolower $channel] #]    set www_main ${www_location}${chan}.html     set www_talk ${www_location}${chan}_talk.html     set www_login ${www_location}${chan}_login.html     set www_lines([string tolower $chan]) 0    www_title $chan    www_user $chan    www_chat $chan    set wc [open $www_main w]    puts $wc "&lt;html&gt;&lt;head&gt;&lt;title&gt;$chan -=- $botnick IRC Moniter -=- Written By Wacko&lt;/title&gt;"    puts $wc "&lt;frameset rows=\"60,*\" FRAMEBORDER=0 FRAMESPACING=0 Border=0 marginheight=0 marginwidth=0&gt;"    puts $wc "  &lt;frameset cols=\"150,*\" FRAMEBORDER=0 FRAMESPACING=0 Border=0 marginheight=0 marginwidth=0&gt;"    puts $wc "  &lt;frame name=\"${chan}_talk\" src=\"${chan}_talk.html\" scrolling=\"no\" marginheight=0 marginwidth=0 noresize&gt;"    puts $wc "  &lt;frame name=\"${chan}_title\" src=\"${chan}_title.html\" scrolling=\"no\" marginheight=0 marginwidth=0 noresize&gt;"    puts $wc "  &lt;/frameset&gt;"    puts $wc "  &lt;frameset cols=\"150,*\" FRAMEBORDER=0 FRAMESPACING=0 Border=0 marginheight=0 marginwidth=0&gt;"    puts $wc "  &lt;frame name=\"${chan}_user\" src=\"${chan}_user.html\" scrolling=\"auto\" marginheight=0 marginwidth=0 noresize&gt;"    puts $wc "  &lt;frame name=\"${chan}_chat\" src=\"${chan}_chat.html\" scrolling=\"auto\" marginheight=0 marginwidth=0 noresize&gt;"    puts $wc "  &lt;/frameset&gt;"    puts $wc "&lt;/frameset&gt;"    close $wc    set wc [open $www_login w]    puts $wc "&lt;html&gt;&lt;head&gt;&lt;title&gt;$chan -=- $botnick IRC Moniter -=- Written By Wacko&lt;/title&gt;"    puts $wc "&lt;script language=\"javascript\"&gt;"    puts $wc "function click() {"    puts $wc "if (event.button==2) {"    puts $wc "alert('Web Poster 1.9 -=- By Wacko @ #eggdrop ! undernet.org.')"    puts $wc "}"    puts $wc "}"    puts $wc "document.onmousedown=click"    puts $wc "&lt;/script&gt;"    puts $wc "&lt;body bgcolor=\"$www_bgcolor\" text=\"$www_text\" background=\"$bgimage\" bgproperties=\"$bgset\"&gt;"    puts $wc "&lt;center&gt;&lt;form action=\"http://www.chatsystems.com:8080/${www_network}/signon.html\" method=\"GET\"&gt;"    puts $wc "&lt;table border=\"0\"&gt;"    puts $wc "&lt;tr&gt;&lt;td align=\"right\"&gt;Nick Name: &lt;/td&gt;"    puts $wc "&lt;td&gt;&lt;input name=\"N\" size=\"11\"&gt;&lt;/td&gt;&lt;/tr&gt;"    puts $wc "&lt;tr&gt;&lt;td align=\"right\"&gt;Channel: &lt;/td&gt;"    puts $wc "&lt;td&gt;&lt;select name=\"C\" size=\"1\"&gt;&lt;option&gt;#$chan &lt;/option&gt;&lt;/select&gt;&lt;/td&gt;&lt;/tr&gt;"    puts $wc "&lt;tr&gt;&lt;td align=\"right\"&gt;Refresh Freq: &lt;/td&gt;"    puts $wc "&lt;td&gt;&lt;select name=\"R\" size=\"1\"&gt;&lt;option value=\"0\"&gt;Continuous &lt;/option&gt;&lt;option value=\"5\"&gt;5 sec &lt;/option&gt;&lt;option value=\"10\"&gt;10 sec &lt;/option&gt;&lt;option value=\"15\"&gt;15 sec &lt;/option&gt;&lt;option value=\"30\"&gt;30 sec &lt;/option&gt;&lt;/select&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;"    puts $wc "&lt;td align=\"right\"&gt;Network: &lt;/td&gt;"    puts $wc "&lt;td&gt;&lt;select name=\"NET\" size=\"1\"&gt;&lt;option&gt;$www_network &lt;/option&gt;&lt;/select&gt;&lt;/td&gt;&lt;/tr&gt;"    puts $wc "&lt;/table&gt;&lt;input type=\"image\" SRC=\"chatnow.gif\" value=\"Chat\"&gt;&lt;/form&gt;"    close $wc    set wc [open $www_talk w]    puts $wc "&lt;html&gt;&lt;head&gt;&lt;title&gt;$chan -=- $botnick IRC Moniter -=- Written By Wacko&lt;/title&gt;"    puts $wc "&lt;script language=\"javascript\"&gt;"    puts $wc "function click() {"    puts $wc "if (event.button==2) {"    puts $wc "alert('Web Poster 1.9 -=- By Wacko @ #eggdrop ! undernet.org.')"    puts $wc "}"    puts $wc "}"    puts $wc "document.onmousedown=click"    puts $wc "&lt;/script&gt;"    puts $wc "&lt;body bgcolor=\"$www_bgcolor\" text=\"$www_text\" background=\"$bgimage\" bgproperties=\"$bgset\"&gt;"    puts $wc "&lt;center&gt;&lt;a href=\"${chan}_login.html\" target=\"${chan}_login\"&gt;&lt;img SRC=\"chatnow.gif\" border=0&gt;&lt;/a&gt;"    close $wc  }}  proc www_chat {chan} {  global www_location bgset bgimage  global www_bgcolor www_text lcolor  set www_chat ${www_location}${chan}_chat.html  set www_lines([string tolower $chan]) 0  set wc [open $www_chat w]  puts $wc "&lt;html&gt;&lt;head&gt;&lt;meta http-equiv=refresh content=10; url=${chan}_chat.html&gt;&lt;/head&gt;"  puts $wc "&lt;script language=\"JavaScript\"&gt;"  puts $wc "&lt;!--"  puts $wc "vPos=100000000000;"  puts $wc "function onLast() {"  puts $wc "  window.scroll(0,vPos);"  puts $wc "}"  puts $wc "function click() {"  puts $wc "if (event.button==2) {"  puts $wc "alert('Web Poster 1.9 -=- By Wacko @ #eggdrop ! undernet.org.')"  puts $wc "}"  puts $wc "}"  puts $wc "document.onmousedown=click"  puts $wc "&lt;/script&gt;"  puts $wc "&lt;/script&gt;"  puts $wc "&lt;style type=\"text/css\"&gt;"  puts $wc "A:link    \{ text-decoration : none; \}"  puts $wc "A:visited \{ text-decoration : none; \}"  puts $wc "A:hover   \{ text-decoration : underline overline;\}"  puts $wc "&lt;/style&gt;"  puts $wc "&lt;body bgcolor=\"$www_bgcolor\" text=\"$www_text\" background=\"$bgimage\" bgproperties=\"$bgset\" link=\"$lcolor\" vlink=\"$lcolor\" onload=\"if(window.scroll)onLast()\"&gt;&lt;tt&gt;"  close $wc}proc www_title {chan} {  global www_location bgset bgimage  global www_bgcolor www_text  set www_topc ${www_location}${chan}_title.html  set topc [topic #${chan}]  set topc [www_color "$topc" "title"]  set wc [open $www_topc w]  puts $wc "&lt;html&gt;&lt;head&gt;&lt;meta http-equiv=refresh content=60; url=${chan}_title.html&gt;&lt;/head&gt;"  puts $wc "&lt;script language=\"javascript\"&gt;"  puts $wc "function click() {"  puts $wc "if (event.button==2) {"  puts $wc "alert('Web Poster 1.9 -=- By Wacko @ #eggdrop ! undernet.org.')"  puts $wc "}"  puts $wc "}"  puts $wc "document.onmousedown=click"  puts $wc "&lt;/script&gt;"  puts $wc "&lt;body bgcolor=\"$www_bgcolor\" text=\"$www_text\" background=\"$bgimage\" bgproperties=\"$bgset\"&gt;"  puts $wc "&lt;table cellspacing=0 cellpadding=0 border=0&gt;&lt;tr&gt;&lt;td&gt;$topc&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/body&gt;"  close $wc}proc www_user {chan} {  global www_location vcolor ocolor font fsize lcolor  global www_bgcolor www_text bgset bgimage   set www_user ${www_location}${chan}_user.html  set www_who  ${www_location}${chan}_who.html  set list [lsort -increasing [chanlist #${chan}]]      set wc [open $www_user w]      set wf [open $www_who w]      puts $wc "&lt;html&gt;&lt;head&gt;&lt;meta http-equiv=refresh content=30; url=${chan}_user.html&gt;&lt;/head&gt;"      puts $wc "&lt;script language=\"javascript\"&gt;"      puts $wc "function click() {"      puts $wc "if (event.button==2) {"      puts $wc "alert('Web Poster 1.9 -=- By Wacko @ #eggdrop ! undernet.org.')"      puts $wc "}"      puts $wc "}"      puts $wc "document.onmousedown=click"      puts $wc "&lt;/script&gt;"      puts $wc "&lt;style type=\"text/css\"&gt;"      puts $wc "A:link    \{ text-decoration : none; \}"      puts $wc "A:visited \{ text-decoration : none; \}"      puts $wc "A:hover   \{ text-decoration : underline overline;\}"      puts $wc "&lt;/style&gt;"      puts $wc "&lt;body bgcolor=\"$www_bgcolor\" text=\"$www_text\" background=\"$bgimage\" bgproperties=\"$bgset\" link=\"$lcolor\" vlink=\"$lcolor\"&gt;"  foreach nick $list {    if {[isop $nick #$chan]} {      puts $wc "&lt;font color=\"$ocolor\" face=\"$font\" size=\"$fsize\"&gt;@ ${nick}&lt;/font&gt;&lt;br&gt;"    }  }  foreach nick $list {    if {![isop $nick #$chan] &amp;&amp; [isvoice $nick #$chan]} {      puts $wc "&lt;font color=\"$vcolor\" face=\"$font\" size=\"$fsize\"&gt;+ ${nick}&lt;/font&gt;&lt;br&gt;"    }  }  foreach nick $list {    if {![isop $nick #$chan] &amp;&amp; ![isvoice $nick #$chan]} {      puts $wc "&lt;font face=\"$font\" size=\"$fsize\"&gt;\ \ ${nick}&lt;br&gt;"    }  }      close $wc      close $wf}proc www_menu {} {  global www_location vcolor ocolor menu botnick  global www_bgcolor www_text bgset bgimage font lcolor  set conf ./scripts/menu.conf  set www_menu ${www_location}${menu}  set wc [open $www_menu w]      puts $wc "&lt;html&gt;&lt;head&gt;&lt;Title&gt;$botnick IRC Moniter -=- Written By Wacko&lt;/title&gt;&lt;/head&gt;"    puts $wc "&lt;script language=\"javascript\"&gt;"    puts $wc "function click() {"    puts $wc "if (event.button==2) {"    puts $wc "alert('Web Poster 1.9 -=- By Wacko @ #eggdrop ! undernet.org.')"    puts $wc "}"    puts $wc "}"    puts $wc "document.onmousedown=click"    puts $wc "&lt;/script&gt;"    puts $wc "&lt;/script&gt;"    puts $wc "&lt;style type=\"text/css\"&gt;"    puts $wc "A:link    \{ text-decoration : none; \}"    puts $wc "A:visited \{ text-decoration : none; \}"    puts $wc "A:hover   \{ text-decoration : underline overline;\}"    puts $wc "&lt;/style&gt;"    puts $wc "&lt;body bgcolor=\"$www_bgcolor\" text=\"$www_text\" background=\"$bgimage\" bgproperties=\"$bgset\" link=\"$lcolor\" vlink=\"$lcolor\"&gt;"  if {[file exists $conf]} {    set fd [open $conf r]    while {![eof $fd]} {puts $wc "[gets $fd]"}    close $fd  } else {    puts $wc "&lt;CENTER&gt;"    puts $wc "&lt;font face=\"$font\" size=\"5\"&gt;Wacko's Web Bot Poster&lt;br&gt;Running on $botnick&lt;br&gt;"    puts $wc "Please choose a channel from below&lt;br&gt;&lt;/font&gt;"  }    foreach channel [lsort -increasing [channels]] {    set chan [string trimleft [string tolower $channel] #]      puts $wc "&lt;a href=\"${chan}.html\"&gt;#${chan}&lt;br&gt;"  }  puts $wc "&lt;/body&gt;&lt;/html&gt;"  close $wc}proc move_files {} {  global www_location images  foreach img $images {    set gf ./scripts/$img    set pf ${www_location}${img}        if {[file exists $gf] &amp;&amp; ![file exists $pf]} {exec -- mv $gf $pf}  }}proc www_init {} {  putlog " -=&gt; Loading... Wacko's Web Poster 1.9 ..."  bind pubm * * www_pubm  bind ctcp - ACTION www_action  bind join * * www_join  bind part * * www_part  bind sign * * www_sign  bind topc * * www_topc  bind mode * * www_mode  bind kick * * www_kick  bind nick * * www_nick}set color_mirc "white black navy green red maroon purple olive yellow lime teal aqua blue fuchsia gray silver"set images "smile.gif talk.gif frown.gif kick.gif chatnow.gif"proc www_color {data where} {  global www_location www_lines cmode font fsize color_mirc  if {$where == "title"} {    set size 5 ; set data "&lt;b&gt;&lt;font face=$font size=$fsize&gt;${data}"  } else {    set size $fsize  }  set a 15  while {$a &gt; 0} {    set b 15    while {$b &gt; 0} {      regsub -all ${a},${b} $data "&lt;/font&gt;&lt;/td&gt;&lt;td bgcolor=[lindex $color_mirc $b]&gt;&lt;font face=$font size=$size color=[lindex $color_mirc $a]&gt;" data      incr b -1      }    incr a -1  }  set a 15  while {$a &gt; 0} {    regsub -all ${a} $data "&lt;/font&gt;&lt;font face=$font size=$size color=[lindex $color_mirc $a]&gt;" data  incr a -1  }  regsub -all  $data "" data   regsub -all -- \\\\ $data \\\\\\\\ data ; regsub -all -- \\\[ $data \\\\\[ data ; regsub -all -- \\\] $data \\\\\] data  regsub -all -- \\\} $data \\\\\} data ; regsub -all -- \\\{ $data \\\\\{ data ; regsub -all -- \\\" $data \\\\\" data   set data [split $data " "]  set a [lsearch -regexp [string tolower $data] http://]    set b [lsearch -regexp [string tolower $data] www.]  set c [lsearch -regexp [string tolower $data] ftp://]  set d [lsearch -regexp [string tolower $data] ftp.]  if {$a != -1} {    set site [lindex $data $a]    if {[string trimleft [string tolower $site] http://] != [string tolower $site]} {      set link "&lt;a href=\"$site\" target=\"site\"&gt;${site}&lt;/a&gt;"      set data [lreplace $data $a $a $link]     }  } elseif {$b != -1} {    set site [lindex $data $b]    if {[string trimleft [string tolower $site] www.] != [string tolower $site]} {      set link "&lt;a href=\"http://${site}\" target=\"site\"&gt;${site}&lt;/a&gt;"      set data [lreplace $data $b $b $link]     }  } elseif {$c != -1} {    set site [lindex $data $c]    if {[string trimleft [string tolower $site] ftp://] != [string tolower $site]} {      set link "&lt;a href=\"$site\" target=\"site\"&gt;${site}&lt;/a&gt;"      set data [lreplace $data $c $c $link]     }  } elseif {$d != -1} {    set site [lindex $data $d]    if {[string trimleft [string tolower $site] ftp.] != [string tolower $site]} {      set link "&lt;a href=\"ftp://${site}\" target=\"site\"&gt;${site}&lt;/a&gt;"      set data [lreplace $data $d $d $link]     }  }  set data [join $data]    return $data  }www_setup</code></pre></div>thanks a lot for you help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7056">fredvil</a> — Sat Oct 28, 2006 9:04 am</p><hr />
]]></content>
	</entry>
	</feed>
