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

	<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>2002-11-20T08:49:25-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-20T08:49:25-04:00</updated>

		<published>2002-11-20T08:49:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13412#p13412</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13412#p13412"/>
		<title type="html"><![CDATA[return value raw binding]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13412#p13412"><![CDATA[
No, this is not true, you just have to use the correct command.<br><br>The putserv command, has priority over puthelp.<br><br>As such, if you place 20 lines in the queue with puthelp, placeing 1 line in the putserve queue will allways be displayed before puthelp. This applies with or without the -next.<br><br>If the only reason you wish to use -next for, is to beat any other data, then use puthelp for bulk data like your rules script, and putserv for the whois script, however, don't use -next.<br><br>The reason. If there are important commands being injected into the putserv queue, you don't want a whois script delaying there output, just like you don't want your rules delaying the whois.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Nov 20, 2002 8:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-11-20T08:42:34-04:00</updated>

		<published>2002-11-20T08:42:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13411#p13411</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13411#p13411"/>
		<title type="html"><![CDATA[return value raw binding]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13411#p13411"><![CDATA[
I was just thinking loud.. or something like that.<br><br>My problem is that i want to use -next on putserv/puthelp in my whois-script cause I have som rules/help/memo-scripts which can produce like 15-30 rows, and I dont want a !whois to be put on hold for that long. When someone do a whois my bot should reply to it asap and then continue printing rules/or whatever it was doing. And now you say I wont be able to do this if I have this solution.. <br><br>My other thought was this 318 'end of whois'-row which I have to wait for before I print start to print my variables produced by WHOIS.<p>Statistics: Posted by Guest — Wed Nov 20, 2002 8:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-20T08:14:35-04:00</updated>

		<published>2002-11-20T08:14:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13410#p13410</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13410#p13410"/>
		<title type="html"><![CDATA[return value raw binding]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13410#p13410"><![CDATA[
Again, you need to post a better discription, as your question is not entirly obvious.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Nov 20, 2002 8:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-11-20T08:00:42-04:00</updated>

		<published>2002-11-20T08:00:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13408#p13408</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13408#p13408"/>
		<title type="html"><![CDATA[return value raw binding]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13408#p13408"><![CDATA[
Aah, now I understand. I haven't figured out how to solve the waiting for 318 (end of whois) and if I can do that in the same script but a until()-procedure or something maybe.<br><br>But I also got a problem cause I want -next so !whois-info doesn't have to wait until some !help-texts and stuff are printed.<br><br>Hmm. <br>Damn.<br><br>Thanks!<p>Statistics: Posted by Guest — Wed Nov 20, 2002 8:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-20T06:17:36-04:00</updated>

		<published>2002-11-20T06:17:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13405#p13405</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13405#p13405"/>
		<title type="html"><![CDATA[return value raw binding]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13405#p13405"><![CDATA[
As I sated, you can't do this inside sage:whois:main.<br><br>Lets look through it step by step.<br><div class="codebox"><p>Code: </p><pre><code>bind raw - 313 sege:whois:ircop bind raw - 301 sege:whois:away bind raw - 311 sege:whois:realname putserv "WHOIS $text" -next puthelp "NOTICE $target :$foo" return 1</code></pre></div>bind raw - 313 sege:whois:ircop <br>This sets a script that is designed to capture the incoming 313 raw event (IE, ircop status).<br><br>bind raw - 301 sege:whois:ircop <br>Again, sets a cript that will capture part of the whois<br><br>bind raw - 311 sege:whois:ircop <br>And again, another part of the whois.<br><br>putserv "WHOIS $text" -next<br>This inserts the text "WHOIS $text" (with $text being replaced correctly) into the server queue, but places it as the next line to be sent because of the -next.<br><br>The text is not sent right away. When Tcl scripts are run, eggdrop is frozen in a point in time, until the script completes. Besides this, eggdrop can't call sege:whois:ircop, or any of the others until it's completed, as it has currecntly passed control to Tcl.<br><br>Until eggdrop has gained control again, it won't even process the incoming reply. As stated though, this reply will not be waiting, as it hasn't been requested yet.<br><br>THere is a "End of whois" rar that can be used. Setup you script to use this. When it receives it, you can then output the stored information.<br><br>You will also have to drop the -next flag for the output for this ifnormation, as there will be no guarentee on the order it is dispalyed.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Nov 20, 2002 6:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-11-20T05:53:37-04:00</updated>

		<published>2002-11-20T05:53:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13399#p13399</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13399#p13399"/>
		<title type="html"><![CDATA[return value raw binding]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13399#p13399"><![CDATA[
You missunderstand me, or I missunderstand you. <br><br>This is my script now, working. <br><br>I tried to rewrite it by using your example and got like<br><div class="codebox"><p>Code: </p><pre><code>bind raw - 313 sege:whois:ircopbind raw - 301 sege:whois:awaybind raw - 311 sege:whois:realnameputserv "WHOIS $text" -nextputhelp "NOTICE $target :$foo"return 1</code></pre></div>And instead of puthelp "NOTICE $target :" in sege:whois:[ircop|away|realname] I tried to save variables there.<br><br>As said, I can't get it to work. Maybe I'm dumb or something. =)<p>Statistics: Posted by Guest — Wed Nov 20, 2002 5:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-20T05:29:45-04:00</updated>

		<published>2002-11-20T05:29:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13395#p13395</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13395#p13395"/>
		<title type="html"><![CDATA[return value raw binding]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13395#p13395"><![CDATA[
You will not be able to use sage:whois:main to output anything.<br><br>After executing the putserv line in sage:whois:main, the script will terminate, and pass control back to eggdrop. It is not until control is back with eggdrop, that the "WHOIS" line is sent to the server.<br><br>Don't use putserv lines in the other procedures, as this sends the text ot the server, which you have allready stated you don't want.<br><br>You should store the data instead.<br><br>I have given an example which you claim you had used, but failed, but in reality hasn't been used.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Nov 20, 2002 5:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-11-20T04:28:02-04:00</updated>

		<published>2002-11-20T04:28:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13392#p13392</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13392#p13392"/>
		<title type="html"><![CDATA[return value raw binding]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13392#p13392"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc sege:whois:main { nick uhost hand targ text } {        bind raw - 313 sege:whois:ircop        bind raw - 301 sege:whois:away        bind raw - 311 sege:whois:realname        putserv "WHOIS $text" -next}proc sege:whois:realname { from key arg } {        global target        set nick [lindex [split $arg] 1]        set username [lindex [split $arg] 2]        set hostname [lindex [split $arg] 3]        set realname [string trimleft [join [lrange [split $arg] 5 end]] :]        unbind raw - 311 sege:whois:realname        puthelp "NOTICE $target :$nick utger sig för att vara: $realname" -next}proc sege:whois:ircop { from key arg } {        global target awayreason        set nick [lindex [split $arg] 1]        unbind raw - 313 sege:whois:ircop        puthelp "NOTICE $target :$nick är en av administratörerna på den här chatten" -next}  proc sege:whois:away { from key arg } {        global target        set nick [lindex [split $arg] 1]        set awayreason ""        set awayreason [string trimleft [lrange $arg 2 end] :]        unbind raw - 301 sege:whois:away        puthelp "NOTICE $target :$nick is away with reason: $awayreason" -next}</code></pre></div>This is what it is now. In the nice future I'd like my procs to give me a variable back that I can print in sege:whois:main or other called proc. I also want some true/false-procs with nickserv-check and stuff in some other scripts. And I just can't get this to work. If I set variable in like sege:whois:away it's always one person behind. Do I have to make a delay/sleep or something before I print, or is my thought totally wrong?<p>Statistics: Posted by Guest — Wed Nov 20, 2002 4:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-19T12:17:03-04:00</updated>

		<published>2002-11-19T12:17:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13376#p13376</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13376#p13376"/>
		<title type="html"><![CDATA[return value raw binding]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13376#p13376"><![CDATA[
If using the code above, there should be no ouput, until you tell it to.<br><br>A ssuch, I guess we would need to see more code.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Nov 19, 2002 12:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-11-19T11:09:42-04:00</updated>

		<published>2002-11-19T11:09:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13372#p13372</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13372#p13372"/>
		<title type="html"><![CDATA[return value raw binding]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13372#p13372"><![CDATA[
Hmm, the problem is that it always seems to be one step after. I really cant get around this. The variable is set first when WHOIS is executed, but it prints before. You want to see more code or do you understand my problem?<p>Statistics: Posted by Guest — Tue Nov 19, 2002 11:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-18T19:40:47-04:00</updated>

		<published>2002-11-18T19:40:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13340#p13340</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13340#p13340"/>
		<title type="html"><![CDATA[Re: return value raw binding]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13340#p13340"><![CDATA[
Simply do as you said you want to<br><div class="codebox"><p>Code: </p><pre><code>bind raw - 311 sege:whoisputserv "WHOIS $text" -nextset outputbuffer {}proc sege:whois { from key arg } {   global outputbuffer   set realname [string trimleft [join [lrange [split $arg] 5 end]] :]   #puthelp "NOTICE $target :$nick utger sig för att vara: $realname" -next    lappend outputbuffer "NOTICE $target :$nick utger sig för att vara: $realname"}</code></pre></div>You can then output the contents of $outputbuffer late on<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Nov 18, 2002 7:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-11-18T19:19:23-04:00</updated>

		<published>2002-11-18T19:19:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13339#p13339</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13339#p13339"/>
		<title type="html"><![CDATA[return value raw binding]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13339#p13339"><![CDATA[
I'm working on a !whois-script among other stuff and I'd like to return a value when doing 'bind raw - 311 foo:bar' (just example). Right now my code is (like): <br><div class="codebox"><p>Code: </p><pre><code>bind raw - 311 sege:whoisputserv "WHOIS $text" -nextproc sege:whois { from key arg } {   set realname [string trimleft [join [lrange [split $arg] 5 end]] :]   puthelp "NOTICE $target :$nick utger sig för att vara: $realname" -next}</code></pre></div>Very shortened. But my problem here is that i dont want to print stuff in sege:whois, I just want to save into a variable and print later. How do I achieve (sp?)  this?<p>Statistics: Posted by Guest — Mon Nov 18, 2002 7:19 pm</p><hr />
]]></content>
	</entry>
	</feed>
