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

	<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>2016-05-15T02:31:18-04:00</updated>

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

		<entry>
		<author><name><![CDATA[gembels]]></name></author>
		<updated>2016-05-15T02:31:18-04:00</updated>

		<published>2016-05-15T02:31:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105012#p105012</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105012#p105012"/>
		<title type="html"><![CDATA[raw 307 return]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105012#p105012"><![CDATA[
<blockquote class="uncited"><div>Yes, to "fix" this you could add a timer to allow the 307 get triggered first.</div></blockquote>how do you do that ? on tcl there is no "goto" command.. do I need use while or separate the proc to calling after that.. which one is the best practise between of this 2 below ?<br><br><br>1. .....<div class="codebox"><p>Code: </p><pre><code>set tgchan1                                      "#jakarta" set tgcmdrankx1                          "!trf*" set tgflagsrankx1                                "m|m" bind pubm $tgflagsrankx1 "$tgchan1 %$tgcmdrankx1" bankd bind raw -|- "307" whoisbalas proc whoisbalas {from key text} { global chkreg botnick chanset nick [lindex $text 1] if {$nick == $botnick} { return 0 } putlog "NICK $nick IS IDENTIFY..!" if {[info exists chkreg($nick)]} {         set chkreg($nick) "0"         } response nick chan} proc whoisdia {text} {     putserv "WHOIS $text $text" } proc bankd {nick host hand chan text} {   whoisdia $nick $chan} proc response {nick arg} { global chkregprivmsg $arg "Debug: $chkreg($nick)" if {$chkreg($nick) != "0"} (    tggamemsg1 "$nick, please identify before transfer"                                 unset chkreg($nick)                                 return } else { tggamemsg1 "$nick identified" }    return 0 }</code></pre></div>or<br><br><br>2. .....<div class="codebox"><p>Code: </p><pre><code>set tgchan1                                      "#jakarta" set tgcmdrankx1                          "!trf*" set tgflagsrankx1                                "m|m" bind pubm $tgflagsrankx1 "$tgchan1 %$tgcmdrankx1" bankd bind raw -|- "307" whoisbalas proc whoisbalas {from key text} { global chkreg botnick chanset nick [lindex $text 1] if {$nick == $botnick} { return 0 } putlog "NICK $nick IS IDENTIFY..!" if {[info exists chkreg($nick)]} {         set chkreg($nick) "0"         } } proc whoisdia {text} {     putserv "WHOIS $text $text" } proc bankd {nick host hand chan text} {  global chkreg whoisdia $nick privmsg $arg "Debug: $chkreg($nick)"  utimer 5 [checked $nick]} proc checked {arg} {global chkregif {$chkreg($arg) != "0"} (    tggamemsg1 "$arg, please identify before transfer"                                 unset chkreg($arg)                                 return } else { tggamemsg1 "$arg identified" } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12028">gembels</a> — Sun May 15, 2016 2:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2016-05-13T10:22:14-04:00</updated>

		<published>2016-05-13T10:22:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105010#p105010</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105010#p105010"/>
		<title type="html"><![CDATA[raw 307 return]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105010#p105010"><![CDATA[
Yes, to "fix" this you could add a timer to allow the 307 get triggered first.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri May 13, 2016 10:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[gembels]]></name></author>
		<updated>2016-05-13T09:10:27-04:00</updated>

		<published>2016-05-13T09:10:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105009#p105009</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105009#p105009"/>
		<title type="html"><![CDATA[raw 307 return]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105009#p105009"><![CDATA[
@SpiKe^^<br><br>i try to put<br><div class="codebox"><p>Code: </p><pre><code>if {![info exists chkreg($nick)]} {        set chkreg($nick) "1"        }</code></pre></div>its always saying "please identify before transfer" at the first then if they try second time it work.. you have any idea why ?<br><br>I think its because "whoisdia $nick" didn't response earlier than [info exists chkreg($nick)] ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12028">gembels</a> — Fri May 13, 2016 9:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[gembels]]></name></author>
		<updated>2016-05-09T09:53:56-04:00</updated>

		<published>2016-05-09T09:53:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104999#p104999</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104999#p104999"/>
		<title type="html"><![CDATA[raw 307 return]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104999#p104999"><![CDATA[
thank you so much for your help SpiKe.. silly me<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12028">gembels</a> — Mon May 09, 2016 9:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2016-05-08T10:52:09-04:00</updated>

		<published>2016-05-08T10:52:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104997#p104997</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104997#p104997"/>
		<title type="html"><![CDATA[raw 307 return]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104997#p104997"><![CDATA[
Found one typo on this line...<div class="codebox"><p>Code: </p><pre><code>if {$chkreg($nick) != "0"} (    tggamemsg1 "$nick, please identify before transfer"</code></pre></div>You used an open parenthesis '(' where you need an open brace '{'<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sun May 08, 2016 10:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[gembels]]></name></author>
		<updated>2016-05-08T07:59:51-04:00</updated>

		<published>2016-05-08T07:59:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104995#p104995</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104995#p104995"/>
		<title type="html"><![CDATA[raw 307 return]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104995#p104995"><![CDATA[
Hi,<br><br>the result always "$nick, please identify before transfer" and "$nick identified"<br><br>can someone explain to me what happen please ?<br><br>Thanks in advance<br><div class="codebox"><p>Code: </p><pre><code>set tgchan1                                      "#jakarta"set tgcmdrankx1                          "!trf*"set tgflagsrankx1                                "m|m"bind pubm $tgflagsrankx1 "$tgchan1 %$tgcmdrankx1" bankdbind raw -|- "307" whoisbalasproc whoisbalas {from key text} {global chkreg botnickset nick [lindex $text 1]if {$nick == $botnick} { return 0 }putlog "NICK $nick IS IDENTIFY..!"if {[info exists chkreg($nick)]} {        set chkreg($nick) "0"        }}proc whoisdia {text} {    putserv "WHOIS $text $text"}proc bankd {nick host hand chan text} {global chkregwhoisdia $nickprivmsg $chan "Debug: $chkreg($nick)"if {$chkreg($nick) != "0"} (    tggamemsg1 "$nick, please identify before transfer"                                unset chkreg($nick)                                return } else { tggamemsg1 "$nick identified" }return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12028">gembels</a> — Sun May 08, 2016 7:59 am</p><hr />
]]></content>
	</entry>
	</feed>
