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

	<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>2011-02-17T14:12:33-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2011-02-17T14:12:33-04:00</updated>

		<published>2011-02-17T14:12:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96065#p96065</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96065#p96065"/>
		<title type="html"><![CDATA[!idle alike script which is probably easy.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96065#p96065"><![CDATA[
why not:<div class="codebox"><p>Code: </p><pre><code>set user [string trimright [lindex [split $text] 0 ]]putserv "whois $user $user"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Feb 17, 2011 2:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2011-02-17T14:02:50-04:00</updated>

		<published>2011-02-17T14:02:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96064#p96064</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96064#p96064"/>
		<title type="html"><![CDATA[!idle alike script which is probably easy.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96064#p96064"><![CDATA[
<blockquote class="uncited"><div>The script has served me and friends with perfection for the last months. </div></blockquote>Great!   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><blockquote class="uncited"><div>Now, it seems I have found the very first bug. Check this out:<br>...<br>&lt;@Gewan&gt; !i iCC0\xD^DASS<br>&lt;@Eggdrop&gt; "No such server"[/i]<br><br>Of course, iCC0\tM^DASS is indeed in the channel. My spontaneous guess tells me that the backslash is what's messing the script's parse. What do you guys think? Suggestions? Anyone care to join for a simple fix? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>Ty in advance~<br>Regards~</div></blockquote>I don't know about that.  I tested with a nick that included the backslash, and it worked fine.<br>However, I found what I believe to be part of the problem.  It is mistakes by me, that the use of that nick brought to light.<br><br><br>Find this line:<div class="codebox"><p>Code: </p><pre><code>putserv "whois [join [string trimright [split $text 0]]] [join [string trimright [split $text 0]]]" </code></pre></div>and let's try to fix it again.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>replace with:<div class="codebox"><p>Code: </p><pre><code>putserv "whois [string trimright [lindex [split $text] 0 ]] [string trimright [lindex [split $text] 0 ]]"</code></pre></div>With some quick testing here, it works:<br>&lt;@mynick&gt; !idle iCC0\xD^DASS<br>&lt;@botnick&gt; iCC0\xD^DASS has been idle 35 minutes 9 seconds [signon Thu Feb 17 12:25:59 2011]<br><br>Let us know if that helps.  I hope so.    <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=10420">willyw</a> — Thu Feb 17, 2011 2:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gewan]]></name></author>
		<updated>2011-02-17T12:08:06-04:00</updated>

		<published>2011-02-17T12:08:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96063#p96063</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96063#p96063"/>
		<title type="html"><![CDATA[!idle alike script which is probably easy.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96063#p96063"><![CDATA[
The script has served me and friends with perfection for the last months. Now, it seems I have found the very first bug. Check this out:<br><br><em class="text-italics">&lt;@Gewan&gt; !i shroomill<br>&lt;@Eggdrop&gt; shroomill has been idle 1 hour 40 minutes 52 seconds [signon Thu Feb 17 11:22:36 2011]<br>&lt;@Gewan&gt; !i davVE^BARCA<br>&lt;@Eggdrop&gt; davVE^BARCA has been idle 17 hours 25 minutes [signon Tue Feb 15 21:47:15 2011]<br>&lt;@Gewan&gt; !i iCC0\xD^DASS<br>&lt;@Eggdrop&gt; "No such server"</em><br><br>Of course, iCC0\tM^DASS is indeed in the channel. My spontaneous guess tells me that the backslash is what's messing the script's parse. What do you guys think? Suggestions? Anyone care to join for a simple fix? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>Ty in advance~<br>Regards~<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11468">Gewan</a> — Thu Feb 17, 2011 12:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gewan]]></name></author>
		<updated>2010-12-26T16:34:42-04:00</updated>

		<published>2010-12-26T16:34:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95483#p95483</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95483#p95483"/>
		<title type="html"><![CDATA[!idle alike script which is probably easy.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95483#p95483"><![CDATA[
Oh man. I love this community. Script now runs _flawless_ from point A to Z.<br>I'm _so_ archiving it, since I'll probably be formatting disks and/or switching eggdrop hosting at least at some time.<br>And by then I will (probably) have lost track of this thread completely, and Google may not carry me here at the simplest search term, hehe.<br><br><strong class="text-strong">Cheers, and again, many thanks!</strong><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11468">Gewan</a> — Sun Dec 26, 2010 4:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2010-12-26T16:10:53-04:00</updated>

		<published>2010-12-26T16:10:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95481#p95481</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95481#p95481"/>
		<title type="html"><![CDATA[Re: Works like a charm!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95481#p95481"><![CDATA[
<blockquote class="uncited"><div>...<br> I'm an irssi user, and -- per default -- irssi's auto-completion adds a blank space after nicknames, so I ended up with string '!idle LameIRCer ' instead of '!idle LameIRCer'; notice the lack of blank space in the last example. This was -- of course -- causing the "Not found" return.</div></blockquote>Great!<br>I'm glad you pinned it down.<br><blockquote class="uncited"><div>Now, after executing !idle strings without the ending blank space, script works _flawlessly_. Would it be much pain (an additional 50 lines of code or so*) to add so that script will except/omit any blank space, since no IRCd (that I know of) supports multi-word nicknames, such feature couldn't cause any harm.<br><br>However, it's "surplus" </div></blockquote>Actually, this is 'fine tuning'.    To fix it, that is.    <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><blockquote class="uncited"><div>and really not essential. When triggering the script as it's ment to be '!idle &lt;nick&gt;' it works flawlessly, and it's really not that much pain for the irssi end-user to hit backspace once after auto-completion has kicked in, hehe.</div></blockquote>Ready to try something?  <br><br>Find this line:<div class="codebox"><p>Code: </p><pre><code>putserv "whois [split $text 0] [split $text 0]" </code></pre></div>and remove it -  replacing it with:<div class="codebox"><p>Code: </p><pre><code>putserv "whois [join [string trimright [split $text 0]]] [join [string trimright [split $text 0]]]"</code></pre></div>Then please do test.   <br><br>Here, on a test bot,  with just a couple quick tests, it works.<br>I used a nick like this:      jack[3]<br><br>and tested with:   <div class="codebox"><p>Code: </p><pre><code>"!idle jack[3]" </code></pre></div>and again with:<div class="codebox"><p>Code: </p><pre><code>"!idle jack[3] "</code></pre></div>and again with:<div class="codebox"><p>Code: </p><pre><code>"!idle jack[3]        "</code></pre></div><blockquote class="uncited"><div>Again. Thanks _a lot_ for this brilliant script. IMHO, you guys should post it on the official eggdrop script page. Me and my friends had the idea that this would be a neat feature for our channel, but after Googling for ~10h all I found was several idle scripts, but all those only kept internal track on users on particular channels etc, i.e. not what I was looking for. This one is minimalistic yet pure and brilliant. Will be used on a daily basis in our little group of fellows. You did great! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br><strong class="text-strong">Cheers!</strong>  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"></div></blockquote>10 hours?   ... whew...<br>I'm sure you'll pass along to your group of friends then, that this forum is an excellent one.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">    And perhaps they will visit with us here some from time to time.<br><br>As for posting it in the TCL archive -  I always feel like a script is "not quite done"... like there is room for some improvement.<br>Or... worse... that I've made some error that just has not shown up yet... witness what happened with the first try at this script, above.   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>I'm not a TCL guru... just self taught and like to fiddle with it.<br>But - maybe someday I'll get motivated and take the risk and post some of my favorites.<br><br>That's another advantage of a forum like this -  more eyes on the project, are more apt to spot something and point it out, quicker.<br><br>I hope this works/helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sun Dec 26, 2010 4:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gewan]]></name></author>
		<updated>2010-12-26T15:16:39-04:00</updated>

		<published>2010-12-26T15:16:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95479#p95479</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95479#p95479"/>
		<title type="html"><![CDATA[Works like a charm!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95479#p95479"><![CDATA[
Hi again guys!<br><br>Very much thanks to <em class="text-italics">willyw</em> &amp; <em class="text-italics">speechles</em>; magnificent work!<br><br>Script now works flawless. Oh, you wanna know something funny? Check this out. At first it was failing -- what seemed -- intermittent (only from time to time), and I couldn't see the picture clearly, you feel me? I had made no modifications at the script, other than the correction speechles suggested. Now, the eggdrop console didn't bring up any errors, but !idle checks gave me "No such server". And hey, you wanna know what gave me the weird idea about "It seems to work but not with users who are in eggdrop's channel"..? Hehe, now comes the fun part. I'm an irssi user, and -- per default -- irssi's auto-completion adds a blank space after nicknames, so I ended up with string '!idle LameIRCer ' instead of '!idle LameIRCer'; notice the lack of blank space in the last example. This was -- of course -- causing the "Not found" return.<br><br>Now, after executing !idle strings without the ending blank space, script works _flawlessly_. Would it be much pain (an additional 50 lines of code or so*) to add so that script will except/omit any blank space, since no IRCd (that I know of) supports multi-word nicknames, such feature couldn't cause any harm.<br><br>However, it's "surplus" and really not essential. When triggering the script as it's ment to be '!idle &lt;nick&gt;' it works flawlessly, and it's really not that much pain for the irssi end-user to hit backspace once after auto-completion has kicked in, hehe.<br><br>Again. Thanks _a lot_ for this brilliant script. IMHO, you guys should post it on the official eggdrop script page. Me and my friends had the idea that this would be a neat feature for our channel, but after Googling for ~10h all I found was several idle scripts, but all those only kept internal track on users on particular channels etc, i.e. not what I was looking for. This one is minimalistic yet pure and brilliant. Will be used on a daily basis in our little group of fellows. You did great! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br><strong class="text-strong">Cheers!</strong>  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11468">Gewan</a> — Sun Dec 26, 2010 3:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2010-12-26T12:13:59-04:00</updated>

		<published>2010-12-26T12:13:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95476#p95476</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95476#p95476"/>
		<title type="html"><![CDATA[!idle alike script which is probably easy.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95476#p95476"><![CDATA[
<blockquote class="uncited"><div>...<br> This is why I made those corrections for you.</div></blockquote>Excellent!<br><br>I'm glad I asked you to explain it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sun Dec 26, 2010 12:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2010-12-26T12:04:11-04:00</updated>

		<published>2010-12-26T12:04:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95475#p95475</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95475#p95475"/>
		<title type="html"><![CDATA[!idle alike script which is probably easy.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95475#p95475"><![CDATA[
<blockquote class="uncited"><div>This is interesting.<br>Procedure watch:402 is called when a Raw 402 is returned.<br>That's what happens when you have it look for a nick that is not online.<br>And, you've reported that it works fine for that.<br>Yet, somehow,  at another time when watch:402 was called,  it errored?<br>There's something that I'm not understanding.....</div></blockquote>I showed you where this was. It is in how you catch the raw reply. <div class="codebox"><p>Code: </p><pre><code>putserv "privmsg $workingchan :"[string trimleft [lindex $text 2] :] [lrange [split $text] 3 end]"" </code></pre></div>You fail to split $text and tcl expects a list with properly escaped special characters. When a reply returns from any nicknames that contain uneven-braces, you will witness this error. What this does is break pairings and causes the unbalanced list error. You also failed to join your lrange back into a string. This will make for visible bracings and/or escapes to show. This is why I made those corrections for you.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sun Dec 26, 2010 12:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anahel]]></name></author>
		<updated>2010-12-26T11:54:51-04:00</updated>

		<published>2010-12-26T11:54:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95474#p95474</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95474#p95474"/>
		<title type="html"><![CDATA[!idle alike script which is probably easy.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95474#p95474"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>hmm, it wouldn't work properly in network with more than 1 server, as in most cases "whois" will display sigon/idle time only for people who are on server you both are</div></blockquote>Actually it would. Note the putserv "whois [split $text 0] [split $text 0]", basicaly being whois nickname nickname - which is how you get the whois idle time request off a network. It works by forwarding the request to the right server and returning a response.<br><br>Reference: <a href="http://www.irchelp.org/irchelp/misc/ccosmos.html#Heading373" class="postlink">http://www.irchelp.org/irchelp/misc/cco ... Heading373</a></div></blockquote>yeah, i didn't notice it, but still "whois nick nick" doesn't work on few networks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10737">Anahel</a> — Sun Dec 26, 2010 11:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2010-12-26T11:14:56-04:00</updated>

		<published>2010-12-26T11:14:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95473#p95473</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95473#p95473"/>
		<title type="html"><![CDATA[!idle alike script which is probably easy.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95473#p95473"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>putserv "privmsg $workingchan :"[string trimleft [lindex $text 2] :] [lrange [split $text] 3 end]"" </code></pre></div></div></blockquote>hehehe<br>As evidenced elsewhere, that is not my norm - to not split the string.<br>Thanks for catching it.<br><br><br>But, ( and I haven't had my cup of tea yet today )  I not seeing whatever is causing the error that he mentioned.<br>Especially since he reported that it worked fine one way, and not another.<br><br>Your thoughts?<br><br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sun Dec 26, 2010 11:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2010-12-26T11:03:48-04:00</updated>

		<published>2010-12-26T11:03:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95472#p95472</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95472#p95472"/>
		<title type="html"><![CDATA[!idle alike script which is probably easy.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95472#p95472"><![CDATA[
<blockquote class="uncited"><div>First off, thank you _a lot_ <em class="text-italics">willyw</em>, much(!) appreciated.</div></blockquote>You're welcome.<br><blockquote class="uncited"><div>I have now tested the script. Something's a bit weird though.<br>When I pull '!idle nicknotonchannel' it returns the perfect string set:<br><br><em class="text-italics">&lt;@Eggdrop&gt; Rapidboy has been idle 2 hours 13 minutes 22 seconds [signon Sun Dec 26 12:17:20 2010]</em><br><br>Also, when I pull '!idle offlinenick' I get:<br><br><em class="text-italics">&lt;@Eggdrop&gt; "No such server"</em><br><br>Will probably define it to something like "&lt;nick&gt; is not online", but function (the important) is flawless. Neat.<br></div></blockquote>Good.<br>And yes, it can be made to say anything you wish to indicate that the given nick is not online.  <br>I went with what you see simply because that is the text that the server returned.<br><br>Edit it to whatever you like.   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br><blockquote class="uncited"><div>However, when I drop '!idle nickONchannel', then I will not get anything in return. When I look in the Eggdrop console, I see the following:<br><br><em class="text-italics">[15:18] Tcl error [watch:402]: unmatched open brace in list</em><br><br><br>Any ideas?<br></div></blockquote>This is interesting.<br>Procedure watch:402 is called when a Raw 402 is returned.<br>That's what happens when you have it look for a nick that is not online.<br>And, you've reported that it works fine for that.<br>Yet, somehow,  at another time when watch:402 was called,  it errored?<br>There's something that I'm not understanding.....<br><br>Have you edited the script at all yet?<br>If so, can you copy-n-paste another original copy from this thread, and start over, and try that experiment again?<br><br>Next very curious item:   It should make no difference if the given nick is in a channel with the bot, or not.  <br><blockquote class="uncited"><div>Anything would be of interest.<br>I'm really thankful! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote>And thank you for reporting back.<br><br>If anyone else reading along has input, perhaps they will post too.<br><br><br>p.s. The list of raw numerics that I used for reference can be found here:<br><a href="http://www.mirc.net/raws/" class="postlink">http://www.mirc.net/raws/</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sun Dec 26, 2010 11:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2010-12-26T10:46:08-04:00</updated>

		<published>2010-12-26T10:46:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95471#p95471</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95471#p95471"/>
		<title type="html"><![CDATA[!idle alike script which is probably easy.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95471#p95471"><![CDATA[
<blockquote class="uncited"><div>However, when I drop '!idle nickONchannel', then I will not get anything in return. When I look in the Eggdrop console, I see the following:<br><br><em class="text-italics">[15:18] Tcl error [watch:402]: unmatched open brace in list</em><br><br><br>Any ideas?<br>Anything would be of interest.<br>I'm really thankful! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote><div class="codebox"><p>Code: </p><pre><code>putserv "privmsg $workingchan :"[string trimleft [lindex $text 2] :] [lrange [split $text] 3 end]"" </code></pre></div><ul><li>This up here ----^ should be like this down there ----v</li></ul><div class="codebox"><p>Code: </p><pre><code>putserv "privmsg $workingchan :"[string trimleft [lindex [split $text] 2] :] [join [lrange [split $text] 3 end]]"" </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sun Dec 26, 2010 10:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gewan]]></name></author>
		<updated>2010-12-26T10:24:21-04:00</updated>

		<published>2010-12-26T10:24:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95470#p95470</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95470#p95470"/>
		<title type="html"><![CDATA[!idle alike script which is probably easy.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95470#p95470"><![CDATA[
First off, thank you _a lot_ <em class="text-italics">willyw</em>, much(!) appreciated.<br>I have now tested the script. Something's a bit weird though.<br>When I pull '!idle nicknotonchannel' it returns the perfect string set:<br><br><em class="text-italics">&lt;@Eggdrop&gt; Rapidboy has been idle 2 hours 13 minutes 22 seconds [signon Sun Dec 26 12:17:20 2010]</em><br><br>Also, when I pull '!idle offlinenick' I get:<br><br><em class="text-italics">&lt;@Eggdrop&gt; "No such server"</em><br><br>Will probably define it to something like "&lt;nick&gt; is not online", but function (the important) is flawless. Neat.<br><br>However, when I drop '!idle nickONchannel', then I will not get anything in return. When I look in the Eggdrop console, I see the following:<br><br><em class="text-italics">[15:18] Tcl error [watch:402]: unmatched open brace in list</em><br><br><br>Any ideas?<br>Anything would be of interest.<br>I'm really thankful! <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=11468">Gewan</a> — Sun Dec 26, 2010 10:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Trixar_za]]></name></author>
		<updated>2010-12-26T09:53:14-04:00</updated>

		<published>2010-12-26T09:53:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95469#p95469</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95469#p95469"/>
		<title type="html"><![CDATA[!idle alike script which is probably easy.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95469#p95469"><![CDATA[
<blockquote class="uncited"><div>hmm, it wouldn't work properly in network with more than 1 server, as in most cases "whois" will display sigon/idle time only for people who are on server you both are</div></blockquote>Actually it would. Note the putserv "whois [split $text 0] [split $text 0]", basicaly being whois nickname nickname - which is how you get the whois idle time request off a network. It works by forwarding the request to the right server and returning a response.<br><br>Reference: <a href="http://www.irchelp.org/irchelp/misc/ccosmos.html#Heading373" class="postlink">http://www.irchelp.org/irchelp/misc/cco ... Heading373</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10958">Trixar_za</a> — Sun Dec 26, 2010 9:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anahel]]></name></author>
		<updated>2010-12-26T07:28:58-04:00</updated>

		<published>2010-12-26T07:28:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95468#p95468</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95468#p95468"/>
		<title type="html"><![CDATA[!idle alike script which is probably easy.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95468#p95468"><![CDATA[
hmm, it wouldn't work properly in network with more than 1 server, as in most cases "whois" will display sigon/idle time only for people who are on server you both are<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10737">Anahel</a> — Sun Dec 26, 2010 7:28 am</p><hr />
]]></content>
	</entry>
	</feed>
