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

	<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>2004-08-23T21:30:27-04:00</updated>

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

		<entry>
		<author><name><![CDATA[droolin]]></name></author>
		<updated>2004-08-23T21:30:27-04:00</updated>

		<published>2004-08-23T21:30:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40095#p40095</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40095#p40095"/>
		<title type="html"><![CDATA[thank you]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40095#p40095"><![CDATA[
very much appriceated<br><br>drool<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3562">droolin</a> — Mon Aug 23, 2004 9:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[netux]]></name></author>
		<updated>2004-08-23T20:59:02-04:00</updated>

		<published>2004-08-23T20:59:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40092#p40092</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40092#p40092"/>
		<title type="html"><![CDATA[special characters in string]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40092#p40092"><![CDATA[
if you just want the ip presuming $arg are:<div class="codebox"><p>Code: </p><pre><code>chefboyrd *** Notice -- Client exiting at 3dspawn.AwesomeChat.Net: ]killa_bnuts[!~B@24.226.26.107 (Killed (DaBigun (Automated file list scripts/bots are prohibited.)))</code></pre></div>use:<div class="codebox"><p>Code: </p><pre><code>set ip [lindex [split [lindex [split $arg @] 1]] 0]</code></pre></div>result in:<blockquote class="uncited"><div>24.226.26.107</div></blockquote>if you want to set host use:<div class="codebox"><p>Code: </p><pre><code>set host "*!*@[lindex [split [lindex [split $arg @] 1]] 0]"</code></pre></div>result:<blockquote class="uncited"><div>*!*@24.226.26.107</div></blockquote>as i didnt have nothing to do i test it ;] and works<br>hope it helps<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5272">netux</a> — Mon Aug 23, 2004 8:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[droolin]]></name></author>
		<updated>2004-08-23T18:20:54-04:00</updated>

		<published>2004-08-23T18:20:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40090#p40090</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40090#p40090"/>
		<title type="html"><![CDATA[special characters in string]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40090#p40090"><![CDATA[
I have a string, where I want to strip out an ip.  Example of string:<div class="codebox"><p>Code: </p><pre><code>chefboyrd *** Notice -- Client exiting at 3dspawn.AwesomeChat.Net: ]killa_bnuts[!~B@24.226.26.107 (Killed (DaBigun (Automated file list scripts/bots are prohibited.)))</code></pre></div>I have no problem stripping out the ip when there are no special charactters [ ] right before the ip, but when those are in there.  It's gagging and spewing.  Looking on the net, I found this snippet which was said to be the proper way to do this:<div class="codebox"><p>Code: </p><pre><code>set arg [join [lrange [split $arg] 0 0]]</code></pre></div> which I would think would be <div class="codebox"><p>Code: </p><pre><code>set arg [join [lrange [split $arg] 8 8]]</code></pre></div> in my case, then split the ip at the @ as im doing now.  Is what I think correct????  Im having problems trying to test this in tclsh.  Doesnt want to allow me to set the full string with what Im trying to work with.<br>Any help, as always is most appriceated.<br><br><br>droolin<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3562">droolin</a> — Mon Aug 23, 2004 6:20 pm</p><hr />
]]></content>
	</entry>
	</feed>
