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

	<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>2009-02-07T19:06:46-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-02-07T19:06:46-04:00</updated>

		<published>2009-02-07T19:06:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87280#p87280</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87280#p87280"/>
		<title type="html"><![CDATA[On JOin Link]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87280#p87280"><![CDATA[
For that, I would recommend some kind of timestamping mechanism.<br>Something like this should do the trick (based on code posted by user):<div class="codebox"><p>Code: </p><pre><code>proc throttle {id time} { if {[info exists ::throttle($id)] &amp;&amp; $::throttle($id) &gt; [clock seconds]} {  return 0 } set ::throttle($id) [expr [clock seconds] + $time] return 1}proc myproc {} { if {[throttle "theid" 300]} {  #we're ok, do the good stuff here } {  #still throttle'd, do nothing  return 0 }}</code></pre></div>Edit: A good idea for id would be nickname of the joiner, nick:chan, or something like that.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Feb 07, 2009 7:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Felix2003]]></name></author>
		<updated>2009-02-07T19:01:22-04:00</updated>

		<published>2009-02-07T19:01:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87278#p87278</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87278#p87278"/>
		<title type="html"><![CDATA[On JOin Link]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87278#p87278"><![CDATA[
nml375 your worked perfectly i wasnt thinking of if the had the _ in there name other then at the end thank you<br><br>also was wonderingif anybody managed to find away for a exceptions list?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10476">Felix2003</a> — Sat Feb 07, 2009 7:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-02-07T15:16:51-04:00</updated>

		<published>2009-02-07T15:16:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87275#p87275</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87275#p87275"/>
		<title type="html"><![CDATA[On JOin Link]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87275#p87275"><![CDATA[
The disadvantage of <strong class="text-strong">string map</strong> is that it will remove any _ within the nick, not only trailing ones (messing up nicknames such as my own, NML_375).<br>I would rather recommend using the <strong class="text-strong">string trimright</strong> command;<div class="codebox"><p>Code: </p><pre><code>puthelp "PRIVMSG $relaychan :User Details For $nick ----&gt; http://www.sitename.com/users.php?search=[string trimright $nick "_"]"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Feb 07, 2009 3:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Felix2003]]></name></author>
		<updated>2009-02-07T10:47:37-04:00</updated>

		<published>2009-02-07T10:47:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87272#p87272</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87272#p87272"/>
		<title type="html"><![CDATA[On JOin Link]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87272#p87272"><![CDATA[
ty speechless i did search but couldnt find anything i bet i passed it lol <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=10476">Felix2003</a> — Sat Feb 07, 2009 10:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2009-02-07T10:27:57-04:00</updated>

		<published>2009-02-07T10:27:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87271#p87271</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87271#p87271"/>
		<title type="html"><![CDATA[On JOin Link]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87271#p87271"><![CDATA[
Everything in this thread is covered in many others as well, searching before posting questions can give you answers much faster than waiting for a reply... <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"> <div class="codebox"><p>Code: </p><pre><code>putserv "privmsg $relaychan :User Details For $nick ----&gt; http://www.sitename.com/users.php?search=[string map {"_" ""} $nick]"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sat Feb 07, 2009 10:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Felix2003]]></name></author>
		<updated>2009-02-07T05:57:08-04:00</updated>

		<published>2009-02-07T05:57:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87270#p87270</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87270#p87270"/>
		<title type="html"><![CDATA[On JOin Link]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87270#p87270"><![CDATA[
ok you just solved the 1st part thank you xD but it doesn't remove the _<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10476">Felix2003</a> — Sat Feb 07, 2009 5:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cache]]></name></author>
		<updated>2009-02-07T04:35:59-04:00</updated>

		<published>2009-02-07T04:35:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87269#p87269</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87269#p87269"/>
		<title type="html"><![CDATA[On JOin Link]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87269#p87269"><![CDATA[
I think that _ can be stopped if you use $uhost instead of $nick<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7220">cache</a> — Sat Feb 07, 2009 4:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Felix2003]]></name></author>
		<updated>2009-02-06T20:38:20-04:00</updated>

		<published>2009-02-06T20:38:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87265#p87265</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87265#p87265"/>
		<title type="html"><![CDATA[On JOin Link]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87265#p87265"><![CDATA[
Hello all i was wondering if somebody could assist me i have just started learning TCL scripts and find it really confusing lol anyway to my request i used to do mirc scripts and have a script that when i used joined #help it would display a link to there profile in another room along with a few other information for example<br><br>&lt;UserBot&gt; User has joined #help as  &lt;Felix2003&gt; &lt;<a href="mailto:Felix2003@Felix.The.Crazy.Cat">Felix2003@Felix.The.Crazy.Cat</a>&gt;<br>&lt;UserBot&gt; User Details For  Felix2003 ----&gt;  <a href="http://www.sitename.com/users.php?search=Felix2003" class="postlink">http://www.sitename.com/users.php?search=Felix2003</a><br><br>now i can get the 2nd part the link to the site to work but the 1st seems abit harder<br><br>now the 2nd part <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>we also have a java client that users can use but it puts a annoying _ at the end of there name when the link shows in the other room id like the _ to be removed from the link so for example <br><br><br>&lt;UserBot&gt; User has joined #help as  &lt;Felix2003&gt; &lt;<a href="mailto:Felix2003@Felix.The.Crazy.Cat">Felix2003@Felix.The.Crazy.Cat</a>&gt;<br>&lt;UserBot&gt; User Details For  Felix2003_ ----&gt;  <a href="http://www.sitename.com/users.php?search=Felix2003_" class="postlink">http://www.sitename.com/users.php?search=Felix2003_</a><br><br>would show with the _ removed<br><br>&lt;UserBot&gt; User has joined #help as  &lt;Felix2003&gt; &lt;<a href="mailto:Felix2003@Felix.The.Crazy.Cat">Felix2003@Felix.The.Crazy.Cat</a>&gt;<br>&lt;UserBot&gt; User Details For  Felix2003_ ----&gt;  <a href="http://www.sitename.com/users.php?search=Felix2003" class="postlink">http://www.sitename.com/users.php?search=Felix2003</a><br><br>also i would like but not important a exception list so the staff when they enter or ping and rejoin doesn't activate it<br><br>i hope somebody could help <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br><br>thank you  for your time<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10476">Felix2003</a> — Fri Feb 06, 2009 8:38 pm</p><hr />
]]></content>
	</entry>
	</feed>
