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

	<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>2016-01-11T08:02:04-04:00</updated>

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

		<entry>
		<author><name><![CDATA[COBRa]]></name></author>
		<updated>2016-01-11T08:02:04-04:00</updated>

		<published>2016-01-11T08:02:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104635#p104635</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104635#p104635"/>
		<title type="html"><![CDATA[lsort help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104635#p104635"><![CDATA[
Many thx it works a treat<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12170">COBRa</a> — Mon Jan 11, 2016 8:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2016-01-09T09:16:53-04:00</updated>

		<published>2016-01-09T09:16:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104625#p104625</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104625#p104625"/>
		<title type="html"><![CDATA[lsort help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104625#p104625"><![CDATA[
A quick read-through of the code suggests there are some flaws in the get:banned proc, mainly related to how lists are handled...<br><br>Depending on how you'd like the output, you might try replacing the following line:<div class="codebox"><p>Code: </p><pre><code>set lines1 [split $line_sort "\n"]</code></pre></div>into<div class="codebox"><p>Code: </p><pre><code>set lines1 [join $line_sort ", "]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Jan 09, 2016 9:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[COBRa]]></name></author>
		<updated>2016-01-09T08:59:22-04:00</updated>

		<published>2016-01-09T08:59:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104624#p104624</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104624#p104624"/>
		<title type="html"><![CDATA[lsort help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104624#p104624"><![CDATA[
Hi guys i have a script that writes and reads a .txt file and im trying to list the file alphabetically<br><br>here is the code<br><div class="codebox"><p>Code: </p><pre><code># set the location of the banned.txt fileset banned_(txt) "/home/eggbots/eggdrop/scripts/banned.txt"#set the sitenameset site_(name) "FtN"#set the triggerbind pub - !banned get:bannedbind pub - !addban get:addbanbind pub - !delban get:delbanproc get:banned {nick uhost handle chan arg} {  global banned_ site_   set fp [open $banned_(txt) "r"]   set data [read -nonewline $fp]   close $fp   set lines [split $data "\n"]   set line_sort [lsort -dictionary $lines]   set lines1 [split $line_sort "\n"]       putserv "privmsg $chan :\00314$site_(name)\003 - \0034(BaNNeD LiST)\003 - $lines1"}proc get:addban {nick uhost handle chan text} {  global banned_   if {$text == ""} {   putserv "PRIVMSG $chan :Usage: !addban &lt;grpname&gt;"    return 0   }   set line_to_add $text   set fname $banned_(txt)   set fp [open $fname "a"]   puts $fp $line_to_add   close $fp         putquick "PRIVMSG $chan : \0034Ban Added Sucessfully\003"}proc get:delban {nick uhost handle chan text} {global banned_set fp [open $banned_(txt) "r"]set data [read -nonewline $fp]close $fpset lines [split $data "\n"]set el_num [lsearch $lines $text]if {$el_num != -1} {set lines [lreplace $lines $el_num $el_num]}    putquick "PRIVMSG $chan : \0034Ban Removed Sucessfully\003"set fp [open $banned_(txt) "w"]foreach element $lines {puts $fp $element}close $fp}</code></pre></div>but it outputs with these braces<br><div class="codebox"><p>Code: </p><pre><code>FtN - (BaNNeD LiST) - {aBD AlternativePorn ANiURL CoWRY D3Si EiNFACHNORMAL GAYGAY JustDifferent Ltu MANLOVE N3WS NAMi ONEPiECE PMCG PR0N0Z ZHONGGUO}</code></pre></div>is it possible to output without the {} plz<br><br>many thx in advance<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12170">COBRa</a> — Sat Jan 09, 2016 8:59 am</p><hr />
]]></content>
	</entry>
	</feed>
