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

	<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>2013-08-01T08:17:30-04:00</updated>

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

		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2013-08-01T08:17:30-04:00</updated>

		<published>2013-08-01T08:17:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101941#p101941</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101941#p101941"/>
		<title type="html"><![CDATA[only one time bet]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101941#p101941"><![CDATA[
Post the complete script, or a link where it can be downloaded.<br><br>Maybe someone will have time to test it with you.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Thu Aug 01, 2013 8:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[gembels]]></name></author>
		<updated>2013-08-01T06:02:53-04:00</updated>

		<published>2013-08-01T06:02:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101940#p101940</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101940#p101940"/>
		<title type="html"><![CDATA[Re: only one time bet]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101940#p101940"><![CDATA[
tested with your guess, still can bet more than 1... with nick "[h]"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12028">gembels</a> — Thu Aug 01, 2013 6:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2013-07-31T20:40:13-04:00</updated>

		<published>2013-07-31T20:40:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101936#p101936</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101936#p101936"/>
		<title type="html"><![CDATA[Re: only one time bet]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101936#p101936"><![CDATA[
Is $tgwrngansw a proper list?<br><br>lsearch is meant for use on lists.<br>Ref: <a href="http://www.tcl.tk/man/tcl8.5/TclCmd/lsearch.htm" class="postlink">http://www.tcl.tk/man/tcl8.5/TclCmd/lsearch.htm</a><br><br>If given something else, you may get unexpected and undesirable results.<br>Ref: <a href="http://www.peterre.info/characters.html" class="postlink">http://www.peterre.info/characters.html</a><br>Be sure (for now) to read the part about converting between lists and strings.   <br>There is even a snippet of script there, and below it, it says, <br>"The script choked on nicks that contained [ or {.  "      <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Bookmark that - it is worth having.<br><br><br>A guess - and that is all this is - would be:<div class="codebox"><p>Code: </p><pre><code>set firstone [lsearch [split $tgwrngansw] $namae]</code></pre></div><br>I hope this helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Wed Jul 31, 2013 8:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[gembels]]></name></author>
		<updated>2013-07-31T20:20:40-04:00</updated>

		<published>2013-07-31T20:20:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101934#p101934</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101934#p101934"/>
		<title type="html"><![CDATA[only one time bet]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101934#p101934"><![CDATA[
This 2 peice of code...<br><div class="codebox"><p>Code: </p><pre><code>                                        set namae [tgstripcodesdx [strlwr [string trim $nick]]]                                        set firstone [lsearch $tgwrngansw $namae]                                        if {$firstone ==-1} {lappend tgwrngansw $namae}                                        if {$firstone !=-1} {                                        tggamemsg2 "$nick, only 1 time bet"                                        return                                        }tggamemsg2 "$nick, bet accepted: $text"</code></pre></div><div class="codebox"><p>Code: </p><pre><code>proc tgstripcodesdx {text} {        regsub -all -- "(\[0-9\]\[0-9\]?(,\[0-9\]\[0-9\]?)?)?" $text "" text        regsub -all -- "\t" $text " " text        set text "[string map -nocase [list "\[" "" "\]" "" "~" ""] $text]"        return $text}</code></pre></div>In my ircd server we allow to have nick using symbol like []~-_ of course also A-Za-z0-9<br><br>the problem is, if nick like "[]Name" or "[the]master" without quote, has always can pass the strict .. can bet 10 times.. the codes should only allow 1 time betting..<br><br>another nick like symbol ~-_ and of course also A-Za-z0-9 have no problem with it, everything good (only 1 time bet)<br><br>thanks in advance<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12028">gembels</a> — Wed Jul 31, 2013 8:20 pm</p><hr />
]]></content>
	</entry>
	</feed>
