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

	<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>2005-05-06T19:06:06-04:00</updated>

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

		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2005-05-06T18:58:05-04:00</updated>

		<published>2005-05-06T18:58:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49130#p49130</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49130#p49130"/>
		<title type="html"><![CDATA[String Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49130#p49130"><![CDATA[
oops, and this is why I shouldn't post code at 6am..  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Fri May 06, 2005 6:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-05-06T19:06:06-04:00</updated>

		<published>2005-05-06T10:50:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49101#p49101</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49101#p49101"/>
		<title type="html"><![CDATA[String Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49101#p49101"><![CDATA[
You will need to change<div class="codebox"><p>Code: </p><pre><code>set string [string map {"::" "~"] $string]</code></pre></div>to<div class="codebox"><p>Code: </p><pre><code>set string [string map {"::" "~"} $string]</code></pre></div>Edit: You're welcome gb <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=3085">Sir_Fz</a> — Fri May 06, 2005 10:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2005-05-06T18:56:51-04:00</updated>

		<published>2005-05-05T23:50:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49079#p49079</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49079#p49079"/>
		<title type="html"><![CDATA[String Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49079#p49079"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - !parse parse:stringproc parse:string {nick uhost hand chan text} { set string "a:b :: b :: c :: d ::" set string [string map {"::" "~"} $string] set type 0 foreach s [split $string ~] {  if !$type {   lappend out \00302$s   set type 1  } {   lappend out \00304$s   set type 0  } } putserv "PRIVMSG $chan :[join [lrange $out 0 e] { :: }]"}</code></pre></div>Edit: fixed typo, thanks Sir_Fz !<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Thu May 05, 2005 11:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Esoteric]]></name></author>
		<updated>2005-05-05T22:25:19-04:00</updated>

		<published>2005-05-05T22:25:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49077#p49077</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49077#p49077"/>
		<title type="html"><![CDATA[String Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49077#p49077"><![CDATA[
It doesn't work if the text has spaces ... for example:<br><br>firt last :: name :: last first :: name<br><br>The coloring gets jacked ... can you help?<br><br>Thanks!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6093">Esoteric</a> — Thu May 05, 2005 10:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2005-04-21T09:22:14-04:00</updated>

		<published>2005-04-21T09:22:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48402#p48402</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48402#p48402"/>
		<title type="html"><![CDATA[String Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48402#p48402"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - !parse parse:stringproc parse:string {nick uhost hand chan text} { set string "a:b :: b :: c :: d ::" set type 0 foreach s $string {  if ![string match :: $s] {   if !$type {    lappend out \00302$s    set type 1   } {    lappend out \00304$s    set type 0   }  } } putserv "PRIVMSG $chan :[join [lrange $out 2 e] { :: }]"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Thu Apr 21, 2005 9:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Esoteric]]></name></author>
		<updated>2005-04-21T06:54:47-04:00</updated>

		<published>2005-04-21T06:54:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48395#p48395</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48395#p48395"/>
		<title type="html"><![CDATA[String Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48395#p48395"><![CDATA[
I haven't been able to find anything that will work ... can anyone help?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6093">Esoteric</a> — Thu Apr 21, 2005 6:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Esoteric]]></name></author>
		<updated>2005-04-20T21:48:07-04:00</updated>

		<published>2005-04-20T21:48:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48380#p48380</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48380#p48380"/>
		<title type="html"><![CDATA[String Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48380#p48380"><![CDATA[
Alright one more question, now I need to make every other one a different color ... ie ...<br><br><br>blue :: red :: blue :: red :: blue :: red <br><br><br>etc..<br><br>Any ideas?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6093">Esoteric</a> — Wed Apr 20, 2005 9:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2005-04-20T21:01:19-04:00</updated>

		<published>2005-04-20T21:01:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48378#p48378</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48378#p48378"/>
		<title type="html"><![CDATA[String Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48378#p48378"><![CDATA[
hmm, good point, maybe something like this then..<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !parse parse:stringproc parse:string {nick uhost hand chan text} { set string "a:b :: b :: c :: d ::" foreach s $string {  if ![string match :: $s] {lappend out $s} } putserv "PRIVMSG $chan :[lrange $out 2 e]" # use this one if you want to keep the :: as a seperator # putserv "PRIVMSG $chan :[join [lrange $out 2 e] { :: }]"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Wed Apr 20, 2005 9:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-20T20:29:47-04:00</updated>

		<published>2005-04-20T20:29:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48375#p48375</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48375#p48375"/>
		<title type="html"><![CDATA[String Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48375#p48375"><![CDATA[
PS: you cannot split on "::", the interpreter will threat it like ":", but because the empty elements are merged together with join again it won't bother as long USERNAME doesn't contain a ":".<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Wed Apr 20, 2005 8:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2005-04-20T15:25:28-04:00</updated>

		<published>2005-04-20T15:25:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48365#p48365</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48365#p48365"/>
		<title type="html"><![CDATA[String Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48365#p48365"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - !parse parse:stringproc parse:string {nick uhost hand chan text} { set string "a :: b :: c :: d ::" set out [lrange [join [split $string ::]] 2 end] putserv "PRIVMSG $chan :$out"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Wed Apr 20, 2005 3:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Esoteric]]></name></author>
		<updated>2005-04-20T15:19:15-04:00</updated>

		<published>2005-04-20T15:19:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48364#p48364</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48364#p48364"/>
		<title type="html"><![CDATA[String Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48364#p48364"><![CDATA[
how exactly to I then print that out?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6093">Esoteric</a> — Wed Apr 20, 2005 3:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2005-04-20T15:18:01-04:00</updated>

		<published>2005-04-20T15:18:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48363#p48363</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48363#p48363"/>
		<title type="html"><![CDATA[String Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48363#p48363"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>lrange [join [split $string ::]] 2 end</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Wed Apr 20, 2005 3:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Esoteric]]></name></author>
		<updated>2005-04-20T14:44:27-04:00</updated>

		<published>2005-04-20T14:44:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48362#p48362</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48362#p48362"/>
		<title type="html"><![CDATA[String Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48362#p48362"><![CDATA[
I have a string that is in this format<br><br><strong class="text-strong">username :: username :: username :: username ::</strong><br><br>I need to output this as a single line in my channel but I don't want the first two to ever appear in the output.<br><br>Can anyone help?<br><br>Thanks!<br>-Erik<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6093">Esoteric</a> — Wed Apr 20, 2005 2:44 pm</p><hr />
]]></content>
	</entry>
	</feed>
