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

	<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-12-29T22:48:47-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-12-29T22:48:47-04:00</updated>

		<published>2002-12-29T22:48:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14692#p14692</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14692#p14692"/>
		<title type="html"><![CDATA[/who and clones]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14692#p14692"><![CDATA[
It's actualy more simple than you think.<br><br>One of the worst parts of IRC, is the fact it returns information from one command, before it moves to the next (with the exception of the /list command, which has been changes to prevent MaxQ errors) set of information.<br><br>Thus, if you request information, any /who data retured will be about one request. At the end of this request, a "END OF WHO" RAW is sent (see the RFC).<br><br>At this point, you can move any data to a global array for the current nickname being dealt with.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sun Dec 29, 2002 10:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simonbell]]></name></author>
		<updated>2002-12-28T20:32:39-04:00</updated>

		<published>2002-12-28T20:32:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14655#p14655</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14655#p14655"/>
		<title type="html"><![CDATA[/who and clones]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14655#p14655"><![CDATA[
hm, i think i need to expand on this a little as im not sure if it will be possible at all<br><br>the /who request comes from a separate command to give basic information on a nickname on a server. The nickname does not have to be in any specific channels.<br><br>On receiving various raw binds the information is added to a global array "userinfoarray-nick" which contains all the relevant information, including the nick of the person the /who and /whois is done on.<br><br>Everything is working, except for particular /who section. The problem is, even if i could work out how many lines are being passed to the bot by the /who command, i need to work out which nickname the initial request was about.  If the /who returned these 2 values:<br><blockquote class="uncited"><div>&lt;E&gt; [00:15] from: Devel.BeforeNET.org keyw: 352 arg: E * aooi58 usercf098.dsl.pipex.com Cubix.FL.US.BeforeNET.org bob H* :2 Simon David Bell<br>&lt;E&gt; [00:15] from: Devel.BeforeNET.org keyw: 352 arg: E * aooi58 usercf098.dsl.pipex.com Cubix.FL.US.BeforeNET.org notbad H* :2 Simon David Bell</div></blockquote>In this situation, the information was requested about the user with nickname "notbad", however i cant see a way of adding information to the global array for that specific nickname when 2 nicknames have been returned.<br><br>Is this going to make the script impossible?<br><br>Simon<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1696">simonbell</a> — Sat Dec 28, 2002 8:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-12-23T12:51:24-04:00</updated>

		<published>2002-12-23T12:51:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14531#p14531</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14531#p14531"/>
		<title type="html"><![CDATA[/who and clones]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14531#p14531"><![CDATA[
IRC servers do not talk in Tcl. On top, eggdrop does not know how you want data returning.<br><br>This applies to allmost any language, and any interface.<br><br>As such, documentation usualy specifies the rules on how information is returned. In most cases, a scripting interface will return the data, exactly how it is received.<br><br>It is then up to the scripting language/scripter and scripter to sort out these details.<br><br>Thus, you script is basicaly returning data, exactly as it receives it.<br><br>It is up to you as the script, to setup, and start couting the incoming lines, and if need be, generate a list from the data.<br><br>To start you off.<br><br>You initialise a empty variables(s), to store a list/cout of hosts.<br><br>When a line of data comes in, you add this data to your lists yourself.<br><br>When complete, you may process this data further.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Dec 23, 2002 12:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simonbell]]></name></author>
		<updated>2002-12-20T11:40:15-04:00</updated>

		<published>2002-12-20T11:40:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14461#p14461</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14461#p14461"/>
		<title type="html"><![CDATA[/who and clones]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14461#p14461"><![CDATA[
Hi<br><br>I am writing a script to detect the number of clones there are from a certain host on an irc network (not in a channel).<br><br>To do this i am getting the bot to do a /who +h host on the host of the user i wish to check for clones.<br><br>Then using a raw bind i want to catch the information and count the number of lines which have been returned from the server, as each line represents a clone.<br><br>So, if there are 2 users from a specific host the script catches some items from the who reply as follows:<br><blockquote class="uncited"><div>proc rawwho {from keyw arg} {<br> putlog "$keyw"<br>}</div></blockquote>the $keyw returns:<br><blockquote class="uncited"><div>&lt;E&gt; [15:35] Devel.BeforeNET.org<br>&lt;E&gt; [15:35] Devel.BeforeNET.org</div></blockquote>which is fine, but i am having trouble getting it to count how many times it is being repeated. I thought that each line would be classed as one item in a list, but it appears that each responce is actually an individual item and not part of a list so i am a little stuck as to how to go forward, i just need to count the number of items displayed.<br><br>any ideas?<br><br>thanks<br>Simon<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1696">simonbell</a> — Fri Dec 20, 2002 11:40 am</p><hr />
]]></content>
	</entry>
	</feed>
