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

	<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>2007-06-12T19:44:58-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-06-12T19:44:58-04:00</updated>

		<published>2007-06-12T19:44:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73507#p73507</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73507#p73507"/>
		<title type="html"><![CDATA[whois info [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73507#p73507"><![CDATA[
AskMe: user's hint was based on what nml375 posted before it was fixed:<div class="codebox"><p>Code: </p><pre><code>set i [expr {[string first " :" $text]+2}]</code></pre></div>It does indeed work correctly. <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=3646">Alchera</a> — Tue Jun 12, 2007 7:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AskMe]]></name></author>
		<updated>2007-06-12T13:20:54-04:00</updated>

		<published>2007-06-12T13:20:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73493#p73493</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73493#p73493"/>
		<title type="html"><![CDATA[whois info [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73493#p73493"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>set info [string trimleft [string range $text $i end] :]</code></pre></div></div></blockquote>This works great<br><blockquote class="uncited"><div>Actually, the flaw is that I added 1 and not 2 to the offset. (Forgot I matched 2 characters rather than 1)  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"> <br>Should work as intended<div class="codebox"><p>Code: </p><pre><code>set i [expr [string first " :" $text] + 2]set info [string range $text $i end]</code></pre></div></div></blockquote>This one works great too<br><blockquote class="uncited"><div>why not <div class="codebox"><p>Code: </p><pre><code>set i [expr {[string first ":" $text]+1}]</code></pre></div>?</div></blockquote>didnt work.. they give me this result<div class="codebox"><p>Code: </p><pre><code>TEST 0</code></pre></div><strong class="text-strong">so if anyone need the info you can use</strong><div class="codebox"><p>Code: </p><pre><code>bind raw - 311 uw:RAW311proc uw:RAW311 {from keyword text} {  set i [expr [string first " :" $text] + 2]  set info [string range $text $i end]putlog "TEST $info"}</code></pre></div>or<div class="codebox"><p>Code: </p><pre><code>bind raw - 311 uw:RAW311proc uw:RAW311 {from keyword text} {  set i [expr [string first " :" $text] + 1]  set info [string trimleft [string range $text $i end] :]putlog "TEST $info"}</code></pre></div>they both give me<div class="codebox"><p>Code: </p><pre><code>TEST www.mysitecom/?u=1234</code></pre></div>thanks to all for your help <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8905">AskMe</a> — Tue Jun 12, 2007 1:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-06-12T09:32:37-04:00</updated>

		<published>2007-06-12T09:32:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73489#p73489</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73489#p73489"/>
		<title type="html"><![CDATA[whois info [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73489#p73489"><![CDATA[
<blockquote class="uncited"><div>[22:26] * =============== _|nTe|_ whois response ===============<br>[22:26] * [_|nTe|_] (<a href="mailto:gUeSs@helper.phazenet.com">gUeSs@helper.phazenet.com</a>): gUeSs<br>[22:26] * [_|nTe|_] is a registered nick<br>[22:26] * [_|nTe|_] #scriptingshack @#phazeschool &amp;#phazechat @#HelpDesk +#Command &amp;#Ballarat <br>[22:26] * [_|nTe|_] Pothole.US.Phazenet.Com :Finer Than A Frogs Hair<br>[22:26] * [_|nTe|_] is available for help.<br>[22:26] * =============== _|nTe|_      whois end ===============</div></blockquote>I use XChat's Tcl plugin to format the above and without manipulation I'd have a series of brackets and braces amongst it all. I copied and pasted a line of code forgetting to fix it for eggdrop. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><br><br>XChat snippet:<div class="codebox"><p>Code: </p><pre><code># RPL_WHOISUSERon 311 mywhois {    set whodata [split $_rest " "]    set servertab [findcontext [server]]    .......    complete EAT_ALL}</code></pre></div>PS: I've been "inspired" to revisit this script of mine. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Tue Jun 12, 2007 9:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-06-12T09:15:17-04:00</updated>

		<published>2007-06-12T09:15:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73485#p73485</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73485#p73485"/>
		<title type="html"><![CDATA[whois info [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73485#p73485"><![CDATA[
Think it's rather a matter of preference, if you prefer to work with list or strings. Either way works I suppose, as long as you don't mix them up <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br>One problem with splitting on colon ( : ) however, is that it might screw up bigtime on IPv6 hosts (thats also the reason I'm searching for " :" and not ":").<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Jun 12, 2007 9:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-06-12T08:53:54-04:00</updated>

		<published>2007-06-12T08:53:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73483#p73483</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73483#p73483"/>
		<title type="html"><![CDATA[whois info [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73483#p73483"><![CDATA[
<blockquote class="uncited"><div>@Alchera: Why on earth would you use lrange and join on a string?</div></blockquote>Typo <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br>I copied and pasted from an xchat script I use where everything has to be split etc to remove unwanted characters (an xchat quirk apparently).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Tue Jun 12, 2007 8:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-06-12T08:41:30-04:00</updated>

		<published>2007-06-12T08:41:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73480#p73480</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73480#p73480"/>
		<title type="html"><![CDATA[whois info [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73480#p73480"><![CDATA[
Actually, the flaw is that I added 1 and not 2 to the offset. (Forgot I matched 2 characters rather than 1)  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"> <br>Should work as intended<div class="codebox"><p>Code: </p><pre><code>set i [expr [string first " :" $text] + 2]set info [string range $text $i end]</code></pre></div>@Alchera: Why on earth would you use lrange and join on a string?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Jun 12, 2007 8:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2007-06-12T07:10:10-04:00</updated>

		<published>2007-06-12T07:10:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73474#p73474</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73474#p73474"/>
		<title type="html"><![CDATA[whois info [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73474#p73474"><![CDATA[
why not <div class="codebox"><p>Code: </p><pre><code>set i [expr {[string first ":" $text]+1}]</code></pre></div>?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Tue Jun 12, 2007 7:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-06-12T05:08:58-04:00</updated>

		<published>2007-06-12T05:08:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73464#p73464</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73464#p73464"/>
		<title type="html"><![CDATA[whois info [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73464#p73464"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set info [string trimleft [string range $text $i end] :]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Jun 12, 2007 5:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AskMe]]></name></author>
		<updated>2007-06-12T00:59:43-04:00</updated>

		<published>2007-06-12T00:59:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73462#p73462</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73462#p73462"/>
		<title type="html"><![CDATA[whois info [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73462#p73462"><![CDATA[
<blockquote class="uncited"><div>May be try:<div class="codebox"><p>Code: </p><pre><code>[string trim [join [lrange $text $i end]] :]</code></pre></div></div></blockquote>not working... <br><br>result<div class="codebox"><p>Code: </p><pre><code>TEST</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8905">AskMe</a> — Tue Jun 12, 2007 12:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-06-12T00:32:13-04:00</updated>

		<published>2007-06-12T00:32:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73461#p73461</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73461#p73461"/>
		<title type="html"><![CDATA[whois info [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73461#p73461"><![CDATA[
May be try:<div class="codebox"><p>Code: </p><pre><code>[string trim [join [lrange $text $i end]] :]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Tue Jun 12, 2007 12:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AskMe]]></name></author>
		<updated>2007-06-11T22:34:16-04:00</updated>

		<published>2007-06-11T22:34:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73459#p73459</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73459#p73459"/>
		<title type="html"><![CDATA[whois info [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73459#p73459"><![CDATA[
ok its getting better now but not perfect <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><div class="codebox"><p>Code: </p><pre><code>bind raw - 311 uw:RAW311proc uw:RAW311 {from keyword text} {  set i [expr [string first " :" $text] + 1]  set info [string range $text $i end]      putlog "TEST $info"}</code></pre></div>and the result is<div class="codebox"><p>Code: </p><pre><code>TEST :www.mysitecom/?u=1234</code></pre></div>now i need to remove the : at the begining of :<a href="http://www.mysitecom/?u=1234" class="postlink">www.mysitecom/?u=1234</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8905">AskMe</a> — Mon Jun 11, 2007 10:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-06-11T21:59:34-04:00</updated>

		<published>2007-06-11T21:59:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73456#p73456</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73456#p73456"/>
		<title type="html"><![CDATA[whois info [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73456#p73456"><![CDATA[
First off, don't use "args" as a parameter name. It has some special mechanics that will cause problems if you are not aware of them.<br><br>Next, say we changed it to "text", first step would be to either locate the colon (:), or split the string into a list (using colon as separator character).<br>Easiest would probably be using split, although this might cause some problems in some cases, whereas locating the colon should always work.<br><br>Next step would depend on which method you have chosen, and you will either use lindex to retireve the proper list-item from the newly formed list, or "string range" to select a substring from the textstring.<br><br>The following example uses the substring method:<div class="codebox"><p>Code: </p><pre><code>set i [expr [string first " :" $text] + 1]set info [string range $text $i end]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Jun 11, 2007 9:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AskMe]]></name></author>
		<updated>2007-06-11T21:38:54-04:00</updated>

		<published>2007-06-11T21:38:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73454#p73454</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73454#p73454"/>
		<title type="html"><![CDATA[whois info [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73454#p73454"><![CDATA[
i need a little help on that<br><div class="codebox"><p>Code: </p><pre><code>bind raw - 311 uw:RAW311proc uw:RAW311 {from keyword args} {  set args [lindex $args]  putlog "TEST $args"}</code></pre></div>i receive this<div class="codebox"><p>Code: </p><pre><code>TEST {botnick nick ~bla myhost.com  * :www.mysitecom/?u=1234}</code></pre></div>anyone can help me to just have this info please?<div class="codebox"><p>Code: </p><pre><code>www.mysitecom/?u=1234</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8905">AskMe</a> — Mon Jun 11, 2007 9:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-06-11T18:31:32-04:00</updated>

		<published>2007-06-11T18:31:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73442#p73442</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73442#p73442"/>
		<title type="html"><![CDATA[whois info [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73442#p73442"><![CDATA[
Raw 311, use the raw-bind to catch it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Jun 11, 2007 6:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AskMe]]></name></author>
		<updated>2007-06-12T13:25:02-04:00</updated>

		<published>2007-06-11T16:53:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73438#p73438</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73438#p73438"/>
		<title type="html"><![CDATA[whois info [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73438#p73438"><![CDATA[
in MIRC when i do a whois i reveice this info<div class="codebox"><p>Code: </p><pre><code>nick is "www.mysitecom/?u=1234" ~bla@myhost.com</code></pre></div>how can i retreive the full name info "<a href="http://www.mysitecom/?u=1234" class="postlink">www.mysitecom/?u=1234</a>" ???<br><br>i need this info to make a matchattr <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8905">AskMe</a> — Mon Jun 11, 2007 4:53 pm</p><hr />
]]></content>
	</entry>
	</feed>
