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

	<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-03T17:19:50-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Justdabomb2]]></name></author>
		<updated>2006-10-03T17:19:50-04:00</updated>

		<published>2006-10-03T17:19:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66910#p66910</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66910#p66910"/>
		<title type="html"><![CDATA[How do I make a script put an ID from a .txt file into a URL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66910#p66910"><![CDATA[
anyone?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8244">Justdabomb2</a> — Tue Oct 03, 2006 5:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Justdabomb2]]></name></author>
		<updated>2006-10-01T20:41:04-04:00</updated>

		<published>2006-10-01T20:41:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66856#p66856</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66856#p66856"/>
		<title type="html"><![CDATA[...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66856#p66856"><![CDATA[
Umm thanks... Hopefully someone can help me now....<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8244">Justdabomb2</a> — Sun Oct 01, 2006 8:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[slennox]]></name></author>
		<updated>2006-10-01T20:39:28-04:00</updated>

		<published>2006-10-01T20:39:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66855#p66855</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66855#p66855"/>
		<title type="html"><![CDATA[How do I make a script put an ID from a .txt file into a URL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66855#p66855"><![CDATA[
Scripting Help is for people who are interested in scripting - experienced scripters helping new scripters. If you just post a block of code with an accompanying request for corrections/changes/features, and it's not clear you wrote the code, then it does belong in the requests forum, so that's where this topic's been moved <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=13034">slennox</a> — Sun Oct 01, 2006 8:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Justdabomb2]]></name></author>
		<updated>2006-10-01T20:37:07-04:00</updated>

		<published>2006-10-01T20:37:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66854#p66854</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66854#p66854"/>
		<title type="html"><![CDATA[:'(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66854#p66854"><![CDATA[
I have never used those so I do not know how I would use that in my script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8244">Justdabomb2</a> — Sun Oct 01, 2006 8:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-10-01T20:33:27-04:00</updated>

		<published>2006-10-01T20:33:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66853#p66853</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66853#p66853"/>
		<title type="html"><![CDATA[How do I make a script put an ID from a .txt file into a URL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66853#p66853"><![CDATA[
Instead of repeated nested "foreach"  try regexp and lappend'ing the results into a variable, using ONE foreach.<br><br>EG:<div class="codebox"><p>Code: </p><pre><code>##############################################################################################################################################################################################   foreach line $content {       if {[regexp {&lt;tr&gt;&lt;td style=\"text-align: left;\" class=\"left\"&gt;(.*?)&lt;/td&gt;&lt;td style=\"text-align: right\" class=\"right\"&gt;(.*?)&lt;/td&gt;&lt;/tr&gt;} $content match VarName VarData]} {             lappend MyVar "$VarName $VarData"       }}</code></pre></div>The items in the regexp within (.*?) are the bits of data regexp will grab and put into vars..<br><br>Then you can manipulate the data in $MyVar in whatever way you want using lindex, lsearch, etc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Sun Oct 01, 2006 8:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Justdabomb2]]></name></author>
		<updated>2006-10-01T20:17:56-04:00</updated>

		<published>2006-10-01T20:17:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66851#p66851</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66851#p66851"/>
		<title type="html"><![CDATA[...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66851#p66851"><![CDATA[
I just want help, there is a problem with the script at hand.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8244">Justdabomb2</a> — Sun Oct 01, 2006 8:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-10-01T20:16:40-04:00</updated>

		<published>2006-10-01T20:16:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66850#p66850</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66850#p66850"/>
		<title type="html"><![CDATA[How do I make a script put an ID from a .txt file into a URL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66850#p66850"><![CDATA[
You asked for help reading/writing to a file. I gave that to you. If you now want a full-blown script to grab webpage data, try the request forum. I have no interest in such a script myself.. Maybe someone else will.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Sun Oct 01, 2006 8:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Justdabomb2]]></name></author>
		<updated>2006-10-01T16:40:27-04:00</updated>

		<published>2006-10-01T16:40:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66844#p66844</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66844#p66844"/>
		<title type="html"><![CDATA[Hmmmm.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66844#p66844"><![CDATA[
The code I used it below, but I didn't work. Could you maybe try testing and getting it to work, or maybe see if you can find a problem with mine.<br><br>The part where is saves the GSPID worked fine, but I could get that part to work before on my own, but it still wont show the stats. : <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mad.gif" width="15" height="15" alt=":x" title="Mad"> <br><div class="codebox"><p>Code: </p><pre><code>set mphtstatsfile "scripts/stats/mphtstats.txt" set userperms "-|-" bind pub - !addgspid add:gspid bind pub - !mphtstats show:mphtstatsproc add:gspid {nick uhost hand chan text} {   global mphtstatsfile userperms   # Probably should test $text for proper format (numbers only, length, etc,) too...   set text [split $text]   # test if user has the right flags/permissions to use   if {![matchattr $hand $userperms $chan]} {     puthelp "PRIVMSG $nick :Sorry $nick, I don't know you well enough to use this."     return   }   if {![file exists $mphtstatsfile]} {     # lucky user first one to add data     set dataOut [open $mphtstatsfile w]     puts $dataOut "$hand:$text"     catch {close $dataOut}     return   }   set linenumber -1   # edit: OOPS forgot to open the file first, lol   set input [open $mphtstatsfile r]   set dataIn [split [read $input] \n]   catch {close $input}   foreach line $dataIn {     incr linenumber     # check to see if user has an existing line, replace with new data if they do     if {[string tolower [lindex [split $line :] 0]] == [string tolower $hand]} {       set dataIn [lreplace $dataIn $linenumber $linenumber "$hand:$text"]     }   }   # There were no matching handles found, so just insert the data   if {$linenumber == -1} {     set dataIn [linsert $dataIn end "$hand:text"]   }   # write data to file   set dataOut [open $mphtstatsfile w]   foreach line $dataIn {     if {$line != ""} {       puts $dataOut [join $line]     }   }   flush $dataOut   catch {close $dataOut} } proc show:mphtstats {nick uhost hand chan text} {   global mphtstatsfile userperms   # test if user has the right flags/permissions to use   if {![matchattr $hand $userperms $chan]} {     puthelp "PRIVMSG $nick :Sorry $nick, I don't know you well enough to use this."     return   }   if {![file exists $mphtstatsfile]} {     puthelp "PRIVMSG $nick :No data file found, try !addgspid gspid"     return   }   set gspid ""   set linenumber -1   # open file first here too :P   set input [open $mphtstatsfile r]   set dataIn [split [read $input] \n]   catch {close $input}   foreach line $dataIn {     incr linenumber     # check to see if user has an existing line     if {[string tolower [lindex [split $line :] 0]] == [string tolower $hand]} {       set gspid [lindex [split $line :] 1]     }   }   if {$gspid != ""} {     set url "http://www.nintendowifi.com/gaminghub/MetroidHuntersLicenseFrame.jsp?gspid=$gspid&amp;lang=en&amp;region=en_US&amp;locale=en_U"     } else {     puthelp "PRIVMSG $nick :You don't have a gspid saved.. Try !addgspid &lt;gspid&gt; first"     return   }   # Now you can run your geturl stuff   catch {set token [::http::geturl $url -timeout 30000]} error   if {[string match -nocase "*couldn't open socket*" $error]} {     puthelp "PRIVMSG $nick :Error: couldn't connect..Try again later"     ::http::cleanup $page     return   }   if { [::http::status $page] == "timeout" } {     puthelp "PRIVMSG $nick :Error: Connection timed out."     ::http::cleanup $page     return   }   set content [::http::data $token]   ::http::cleanup $content   set top "&lt;tr&gt;&lt;td style=\"text-align: left;\" class=\"left\"&gt;Overall Rank&lt;/td&gt;&lt;td style=\"text-align: right\" class=\"right\"&gt;"   set bottom "&lt;/td&gt;&lt;/tr&gt;"   set tosave [string range $content [set f [string first $top $content]] [string first $bottom $content $f]]   regsub -all {&lt;[^&gt;]+&gt;|&lt;} $tosave { } tosave   foreach line [split $tosave \n] {     set top2 "&lt;tr&gt;&lt;td style=\"text-align: left;\" class=\"left\"&gt;Alt Kills&lt;/td&gt;&lt;td style=\"text-align: right\" class=\"right\"&gt;"     set bottom2 "&lt;/td&gt;&lt;/tr&gt;"     set tosave2 [string range $content [set f [string first $top2 $content]] [string first $bottom2 $content $f]]     regsub -all {&lt;[^&gt;]+&gt;|&lt;} $tosave2 { } tosave2     foreach line2 [split $tosave2 \n] {       set top3 "&lt;tr&gt;&lt;td style=\"text-align: left;\" class=\"left\"&gt;BiPed Kills&lt;/td&gt;&lt;td style=\"text-align: right\" class=\"right\"&gt;"       set bottom3 "&lt;/td&gt;&lt;/tr&gt;"       set tosave3 [string range $content [set f [string first $top3 $content]] [string first $bottom3 $content $f]]       regsub -all {&lt;[^&gt;]+&gt;|&lt;} $tosave3 { } tosave3       foreach line3 [split $tosave3 \n] {         set top4 "&lt;tr&gt;&lt;td style=\"text-align: left;\" class=\"left\"&gt;Games Won&lt;/td&gt;&lt;td style=\"text-align: right\" class=\"right\"&gt;"         set bottom4 "&lt;/td&gt;&lt;/tr&gt;"         set tosave4 [string range $content [set f [string first $top4 $content]] [string first $bottom4 $content $f]]         regsub -all {&lt;[^&gt;]+&gt;|&lt;} $tosave4 { } tosave4         foreach line4 [split $tosave4 \n] {           set top5 "&lt;tr&gt;&lt;td style=\"text-align: left;\" class=\"left\"&gt;Games Played&lt;/td&gt;&lt;td style=\"text-align: right\" class=\"right\"&gt;"           set bottom5 "&lt;/td&gt;&lt;/tr&gt;"           set tosave5 [string range $content [set f [string first $top5 $content]] [string first $bottom5 $content $f]]           regsub -all {&lt;[^&gt;]+&gt;|&lt;} $tosave5 { } tosave5           foreach line5 [split $tosave5 \n] {             set top6 "&lt;tr&gt;&lt;td style=\"text-align: left;\" class=\"left\"&gt;Disconnects&lt;/td&gt;&lt;td style=\"text-align: right\" class=\"right\"&gt;"             set bottom6 "&lt;/td&gt;&lt;/tr&gt;"             set tosave6 [string range $content [set f [string first $top6 $content]] [string first $bottom6 $content $f]]             regsub -all {&lt;[^&gt;]+&gt;|&lt;} $tosave6 { } tosave6             foreach line6 [split $tosave6 \n] {               set top7 "&lt;tr&gt;&lt;td style=\"text-align: left;\" class=\"left\"&gt;Win Rate&lt;/td&gt;&lt;td style=\"text-align: right\" class=\"right\"&gt;"               set bottom7 "&lt;/td&gt;&lt;/tr&gt;"               set tosave7 [string range $content [set f [string first $top7 $content]] [string first $bottom7 $content $f]]               regsub -all {&lt;[^&gt;]+&gt;|&lt;} $tosave7 { } tosave7               foreach line7 [split $tosave7 \n] {                 set top8 "&lt;tr&gt;&lt;td style=\"text-align: left;\" class=\"left\"&gt;Headshots&lt;/td&gt;&lt;td style=\"text-align: right\" class=\"right\"&gt;"                 set bottom8 "&lt;/td&gt;&lt;/tr&gt;"                 set tosave8 [string range $content [set f [string first $top8 $content]] [string first $bottom8 $content $f]]                 regsub -all {&lt;[^&gt;]+&gt;|&lt;} $tosave8 { } tosave8                 foreach line8 [split $tosave8 \n] {                   set top9 "&lt;tr&gt;&lt;td style=\"text-align: left;\" class=\"left\"&gt;Shots Fired&lt;/td&gt;&lt;td style=\"text-align: right\" class=\"right\"&gt;"                   set bottom9 "&lt;/td&gt;&lt;/tr&gt;"                   set tosave9 [string range $content [set f [string first $top9 $content]] [string first $bottom9 $content $f]]                   regsub -all {&lt;[^&gt;]+&gt;|&lt;} $tosave9 { } tosave9                   foreach line9 [split $tosave9 \n] {                     putserv "PRIVMSG $chan :$line , $line2 , $line3 , $line4 , $line5 , $line6 , $line7 , $line8 , $line9"                   }                 }               }             }           }         }       }     }   } } putlog "Justdabot's MPHT Stats Script Loaded"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8244">Justdabomb2</a> — Sun Oct 01, 2006 4:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Justdabomb2]]></name></author>
		<updated>2006-10-01T16:14:45-04:00</updated>

		<published>2006-10-01T16:14:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66842#p66842</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66842#p66842"/>
		<title type="html"><![CDATA[:)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66842#p66842"><![CDATA[
I'll try it now.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8244">Justdabomb2</a> — Sun Oct 01, 2006 4:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-10-01T16:03:31-04:00</updated>

		<published>2006-10-01T15:24:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66839#p66839</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66839#p66839"/>
		<title type="html"><![CDATA[How do I make a script put an ID from a .txt file into a URL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66839#p66839"><![CDATA[
Is that the entire script? There's nothing there to read/write to a file.<br>If you want an example of reading/writing to a file:<div class="codebox"><p>Code: </p><pre><code>############################################################################################################################################################################set mydatafile "/home/whatever/bot/data/mydata.txt"set userperms "f|f"bind pub - !save saveprocbind pub - !getdata dataprocproc saveproc {nick uhost hand chan text} {       global mydatafile userperms       # Probably should test $text for proper format  (numbers only, length, etc,) too...       set text [split $text]       # test if user has the right flags/permissions to use       if {![matchattr $hand $userperms $chan]} {             puthelp "PRIVMSG $nick :Sorry $nick, I don't know you well enough to use this."             return       }       if {![file exists $mydatafile]} {             # lucky user first one to add data             set dataOut [open $mydatafile w]             puts $dataOut "$hand:$text"             catch {close $dataOut}             return        }       set linenumber -1       # edit: OOPS forgot to open the file first, lol       set input [open $mydatafile r]       set dataIn [split [read $input] \n]       catch {close $input}       foreach line $dataIn {             incr linenumber             # check to see if user has an existing line, replace with new data if they do             if {[string tolower [lindex [split $line :] 0]] == [string tolower $hand]} {                      set dataIn [lreplace $dataIn $linenumber $linenumber "$hand:$text"]             }       }       # There were no matching handles found, so just insert the data       if {$linenumber == -1} {             set dataIn [linsert $dataIn end "$hand:text"]       }       # write data to file       set dataOut [open $mydatafile w]       foreach line $dataIn {             if {$line != ""} {                   puts $dataOut [join $line]              }       }       flush $dataOut       catch {close $dataOut}}proc getdata {nick uhost hand chan text} {       global mydatafile userperms       # test if user has the right flags/permissions to use       if {![matchattr $hand $userperms $chan]} {             puthelp "PRIVMSG $nick :Sorry $nick, I don't know you well enough to use this."             return       }       if {![file exists $mydatafile]} {             puthelp "PRIVMSG $nick :No data file found, try !save gspid"             return       }       set gspid ""       set linenumber -1       # open file first here too :P       set input [open $mydatafile r]       set dataIn [split [read $input] \n]       catch {close $input}       foreach line $dataIn {             incr linenumber             # check to see if user has an existing line             if {[string tolower [lindex [split $line :] 0]] == [string tolower $hand]} {                      set gspid [lindex [split $line :] 1]             }       }       if {$gspid != ""} {             set url "http://www.nintendowifi.com/gaminghub/MetroidHuntersLicenseFrame.jsp?gspid=$gspid&amp;lang=en&amp;region=en_US&amp;locale=en_U"       } else {             puthelp "PRIVMSG $nick :You don't have a gspid saved.. Try !save &lt;gspid&gt; first"             return       }       # Now you can run your geturl stuff        catch {set token [::http::geturl $url -timeout 30000]} error       if {[string match -nocase "*couldn't open socket*" $error]} {             puthelp "PRIVMSG $nick :Error: couldn't connect..Try again later"             ::http::cleanup $page             return       }       if { [::http::status $page] == "timeout" } {             puthelp "PRIVMSG $nick :Error: Connection timed out."             ::http::cleanup $page             return       }       set content [::http::data $token]       ::http::cleanup $content        # so forth and so on, etc etc.}</code></pre></div>Not tested, should work, standard disclaimer applies..<br><br>Edit: Fixed a couple of oversights <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=7395">rosc2112</a> — Sun Oct 01, 2006 3:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Justdabomb2]]></name></author>
		<updated>2006-09-30T22:12:43-04:00</updated>

		<published>2006-09-30T22:12:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66830#p66830</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66830#p66830"/>
		<title type="html"><![CDATA[How do I make a script put an ID from a .txt file into a URL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66830#p66830"><![CDATA[
How do I make a script put an ID from a .txt file into a URL so that it will go into a specific page.<br><br>The code I have currently is below.<br><br>The web page is: <a href="http://www.nintendowifi.com/gaminghub/MetroidHuntersLicenseFrame.jsp?gspid=69379673&amp;lang=en&amp;region=en_US&amp;locale=en_U" class="postlink">http://www.nintendowifi.com/gaminghub/M ... ocale=en_U</a><br><br>The GSPID is: 69379673<br><br><br>I am having a lot of trouble with adding other's GSPID's into a .txt file, and then having it get the peron's GSPID from the file and then adding it the URL (with the command !mphtstats &lt;nick&gt;). I need it to find the &lt;nick&gt; in the .txt file and then get their GSPID that they added (with the command !addmphtgspid &lt;gspid&gt;) and then have it put their GSPID in the URL.<br><br>e.g. If a person gspid was 12345678, then the url would look like this - <a href="http://www.nintendowifi.com/gaminghub/MetroidHuntersLicenseFrame.jsp?gspid=12345678&amp;lang=en&amp;region=en_US&amp;locale=en_U" class="postlink">http://www.nintendowifi.com/gaminghub/M ... ocale=en_U</a><br><br><br>code:<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !mphtstats show:statsproc show:stats {nick uhost hand chan text} {  set url "http://www.nintendowifi.com/gaminghub/MetroidHuntersLicenseFrame.jsp?gspid=69379673&amp;lang=en&amp;region=en_US&amp;locale=en_U"  set token [::http::geturl $url]  set content [::http::data $token]  ::http::cleanup $content  set top "&lt;tr&gt;&lt;td style=\"text-align: left;\" class=\"left\"&gt;Overall Rank&lt;/td&gt;&lt;td style=\"text-align: right\" class=\"right\"&gt;"  set bottom "&lt;/td&gt;&lt;/tr&gt;"  set tosave [string range $content [set f [string first $top $content]] [string first $bottom $content $f]]  regsub -all {&lt;[^&gt;]+&gt;|&lt;} $tosave { } tosave   foreach line [split $tosave \n] {    set top2 "&lt;tr&gt;&lt;td style=\"text-align: left;\" class=\"left\"&gt;Alt Kills&lt;/td&gt;&lt;td style=\"text-align: right\" class=\"right\"&gt;"    set bottom2 "&lt;/td&gt;&lt;/tr&gt;"    set tosave2 [string range $content [set f [string first $top2 $content]] [string first $bottom2 $content $f]]     regsub -all {&lt;[^&gt;]+&gt;|&lt;} $tosave2 { } tosave2     foreach line2 [split $tosave2 \n] {      set top3 "&lt;tr&gt;&lt;td style=\"text-align: left;\" class=\"left\"&gt;BiPed Kills&lt;/td&gt;&lt;td style=\"text-align: right\" class=\"right\"&gt;"      set bottom3 "&lt;/td&gt;&lt;/tr&gt;"      set tosave3 [string range $content [set f [string first $top3 $content]] [string first $bottom3 $content $f]]       regsub -all {&lt;[^&gt;]+&gt;|&lt;} $tosave3 { } tosave3       foreach line3 [split $tosave3 \n] {        set top4 "&lt;tr&gt;&lt;td style=\"text-align: left;\" class=\"left\"&gt;Games Won&lt;/td&gt;&lt;td style=\"text-align: right\" class=\"right\"&gt;"        set bottom4 "&lt;/td&gt;&lt;/tr&gt;"        set tosave4 [string range $content [set f [string first $top4 $content]] [string first $bottom4 $content $f]]         regsub -all {&lt;[^&gt;]+&gt;|&lt;} $tosave4 { } tosave4         foreach line4 [split $tosave4 \n] {          set top5 "&lt;tr&gt;&lt;td style=\"text-align: left;\" class=\"left\"&gt;Games Played&lt;/td&gt;&lt;td style=\"text-align: right\" class=\"right\"&gt;"          set bottom5 "&lt;/td&gt;&lt;/tr&gt;"          set tosave5 [string range $content [set f [string first $top5 $content]] [string first $bottom5 $content $f]]           regsub -all {&lt;[^&gt;]+&gt;|&lt;} $tosave5 { } tosave5           foreach line5 [split $tosave5 \n] {            set top6 "&lt;tr&gt;&lt;td style=\"text-align: left;\" class=\"left\"&gt;Disconnects&lt;/td&gt;&lt;td style=\"text-align: right\" class=\"right\"&gt;"            set bottom6 "&lt;/td&gt;&lt;/tr&gt;"            set tosave6 [string range $content [set f [string first $top6 $content]] [string first $bottom6 $content $f]]             regsub -all {&lt;[^&gt;]+&gt;|&lt;} $tosave6 { } tosave6             foreach line6 [split $tosave6 \n] {              set top7 "&lt;tr&gt;&lt;td style=\"text-align: left;\" class=\"left\"&gt;Win Rate&lt;/td&gt;&lt;td style=\"text-align: right\" class=\"right\"&gt;"              set bottom7 "&lt;/td&gt;&lt;/tr&gt;"              set tosave7 [string range $content [set f [string first $top7 $content]] [string first $bottom7 $content $f]]               regsub -all {&lt;[^&gt;]+&gt;|&lt;} $tosave7 { } tosave7               foreach line7 [split $tosave7 \n] {                set top8 "&lt;tr&gt;&lt;td style=\"text-align: left;\" class=\"left\"&gt;Headshots&lt;/td&gt;&lt;td style=\"text-align: right\" class=\"right\"&gt;"                set bottom8 "&lt;/td&gt;&lt;/tr&gt;"                set tosave8 [string range $content [set f [string first $top8 $content]] [string first $bottom8 $content $f]]                 regsub -all {&lt;[^&gt;]+&gt;|&lt;} $tosave8 { } tosave8                 foreach line8 [split $tosave8 \n] {                  set top9 "&lt;tr&gt;&lt;td style=\"text-align: left;\" class=\"left\"&gt;Shots Fired&lt;/td&gt;&lt;td style=\"text-align: right\" class=\"right\"&gt;"                  set bottom9 "&lt;/td&gt;&lt;/tr&gt;"                  set tosave9 [string range $content [set f [string first $top9 $content]] [string first $bottom9 $content $f]]                   regsub -all {&lt;[^&gt;]+&gt;|&lt;} $tosave9 { } tosave9                   foreach line9 [split $tosave9 \n] {                    putserv "PRIVMSG $chan :$line , $line2 , $line3 , $line4 , $line5 , $line6 , $line7 , $line8 , $line9"                  }                }              }            }          }        }      }    }  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8244">Justdabomb2</a> — Sat Sep 30, 2006 10:12 pm</p><hr />
]]></content>
	</entry>
	</feed>
