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

	<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>2003-01-25T20:21:20-04:00</updated>

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

		<entry>
		<author><name><![CDATA[SmokeyOne]]></name></author>
		<updated>2003-01-25T20:21:20-04:00</updated>

		<published>2003-01-25T20:21:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15814#p15814</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15814#p15814"/>
		<title type="html"><![CDATA[grabbing localuser info off a raw bind for output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15814#p15814"><![CDATA[
the script you uploaded is bascily what I was looking for.. thanks for the big big big help =D<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2530">SmokeyOne</a> — Sat Jan 25, 2003 8:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-01-24T11:24:48-04:00</updated>

		<published>2003-01-24T11:24:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15758#p15758</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15758#p15758"/>
		<title type="html"><![CDATA[grabbing localuser info off a raw bind for output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15758#p15758"><![CDATA[
<blockquote class="uncited"><div>This is what I added, i think this will get it, but i do need a little help.<br><br>[snip]<br><br>any idea's ?</div></blockquote>SmokeyOne, I'm not 100 % sure what you are after, but from the snippets you posted it seems you want to send a command like "LUSERS" to the server, then wait for the server to send back the answer and post the results in a channel.<br><br>If this is the case, you will need to dig into rfc1459 to see what RAW numerics the server sends back upon such a request. Maybe there are also scripts available at <a href="http://www.egghelp.org/tcl.htm" class="postlink">www.egghelp.org/tcl.htm</a> which can serve as an example.<br><br>Additionally, I've uploaded a sample script of sending a LUSERS request to the server and presenting the result back in the channel.<br><br><a href="http://members.fortunecity.com/eggheadtcl/lusers.tcl.txt" class="postlink">http://members.fortunecity.com/eggheadt ... rs.tcl.txt</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Fri Jan 24, 2003 11:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SmokeyOne]]></name></author>
		<updated>2003-01-24T06:08:56-04:00</updated>

		<published>2003-01-24T06:08:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15748#p15748</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15748#p15748"/>
		<title type="html"><![CDATA[grabbing localuser info off a raw bind for output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15748#p15748"><![CDATA[
This is what I added, i think this will get it, but i do need a little help.<br><br>proc net_luser {server num arg} {<br>        global net<br>        append net(reply) $arg<br>        return 0<br>}<br>proc net_reply {type arg} {<br>        set lusers [lindex $net(reply) 5]<br>        set lserv [lindex $net(reply) 6]<br>        putmsg $nick "$Local: $lusers and $lserv servers."<br>        if {$type == "u" &amp;&amp; $net(status) == "u" ] {<br>                set lserver [lindex $net(reply) 0]<br>                set lusers [lindex $net(reply) 5]<br>                putmsg $nick "Local: $lusers"<br>                return 1<br>        }<br>}<br>any idea's ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2530">SmokeyOne</a> — Fri Jan 24, 2003 6:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SmokeyOne]]></name></author>
		<updated>2003-01-24T05:48:53-04:00</updated>

		<published>2003-01-24T05:48:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15745#p15745</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15745#p15745"/>
		<title type="html"><![CDATA[grabbing localuser info off a raw bind for output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15745#p15745"><![CDATA[
okay here is the fun part.  I managed to get the sub commands working thanks to sleeping and ppslim, and a few others. I'm haveing trouble with this lovely statment.. I'm pretty much pulling this out of thin air, and it doesn't work =/<br><br>proc net_lu {nick uhost hand chan arg} {<br>        global lu<br>        if {$chan != $net(chan)} {return 0}<br>        if {[lindex $arg 0] == "local" || [lindex $arg 0] == ""} {<br>                set net(status) "l"<br>                set net(reply) "local "<br>                putquick "LUSERS"<br>                return 0<br>        } else {<br>                set net(status) "u"<br>                set net(reply) "[lindex $arg 0] "<br>                putquick "USERS [lindex $arg 0]"<br>                putquick "STATS $net(cmd) [lindex $arg 0]"<br>                putquick "TIME [lindex $arg 0]"<br>                return 0<br>        }<br>}<br>I'm woundering if i should at least add something else to this.. I know I'm missing something. I have to be missing some other sets somewhere but its just not jumping out at me for some odd reason.  Getting this to print the output with a "command" has me stumped =/[/code]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2530">SmokeyOne</a> — Fri Jan 24, 2003 5:48 am</p><hr />
]]></content>
	</entry>
	</feed>
