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

	<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>2004-04-15T10:17:20-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Aron]]></name></author>
		<updated>2004-04-15T10:17:20-04:00</updated>

		<published>2004-04-15T10:17:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35553#p35553</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35553#p35553"/>
		<title type="html"><![CDATA[Returning a variable from another process (Qnet auth system)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35553#p35553"><![CDATA[
That sounds all good, but I don't have a CLUE how to set up a basic script which would do that <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=2858">Aron</a> — Thu Apr 15, 2004 10:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2004-04-15T08:09:13-04:00</updated>

		<published>2004-04-15T08:09:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35545#p35545</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35545#p35545"/>
		<title type="html"><![CDATA[Returning a variable from another process (Qnet auth system)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35545#p35545"><![CDATA[
Indeed, you have spotted the pitfalls.<br><br>This is because eggdrop only processes one command at a time. It is not possible to read ahead of itself.<br><br>What you will need is some form of a callback system. Callback is the process or sending a command that can't complete right away on the spot, at this point, your eggdrop can go about its thing. The funny thing is, it can take one second to one year, and the process will work.<br><br>Once the information is available, a new script is called on which a reaction takes place.<br><br>Think of the RAW bind as a callback. You send the WHOIS to the server, and then later on the RAW is called once the information is available.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Apr 15, 2004 8:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Aron]]></name></author>
		<updated>2004-04-14T09:13:08-04:00</updated>

		<published>2004-04-14T09:13:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35513#p35513</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35513#p35513"/>
		<title type="html"><![CDATA[Returning a variable from another process (Qnet auth system)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35513#p35513"><![CDATA[
I am working on a system to recognize people by their Q (Quakenet's bot) auth name.<br>It is returned in RAW 330.<br><br>Further explanation is in the script.<div class="codebox"><p>Code: </p><pre><code># The idea is to be able to include this in other scripts like this:## if {[returnauth nickname]} { blablablabla }## The problem is that the returnauth process ends at the moment the whois # starts.# I already tried using return $q_auth behind the whois, but that doesn't work # (obviously)# Any ideas?## Thanks in advance.# this is just a temporarily testbind...bind pub n !testauth checkauthproc checkauth {nick host hand chan arg} { putserv "WHOIS [lindex [split $arg] 0]"}proc returnauth { } { global q_auth putserv "PRIVMSG #pieisyummy :$q_auth" return $q_auth}bind raw - 330 raw:getauthproc raw:getauth {from key arg} { global q_auth set q_auth [lindex [split $arg] 2] returnauth}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2858">Aron</a> — Wed Apr 14, 2004 9:13 am</p><hr />
]]></content>
	</entry>
	</feed>
