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

	<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>2007-09-07T09:16:48-04:00</updated>

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

		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2007-09-07T09:16:48-04:00</updated>

		<published>2007-09-07T09:16:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75780#p75780</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75780#p75780"/>
		<title type="html"><![CDATA[equivalent to getchanhost for a user outside the channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75780#p75780"><![CDATA[
WHO? Why not USERHOST?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Sep 07, 2007 9:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2007-09-06T14:48:47-04:00</updated>

		<published>2007-09-06T14:48:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75760#p75760</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75760#p75760"/>
		<title type="html"><![CDATA[equivalent to getchanhost for a user outside the channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75760#p75760"><![CDATA[
I would use WHO with the nuh arguments (n=nickname,u=username(identd),h=hostname)<br><div class="codebox"><p>Code: </p><pre><code>putserv "WHO $nick %nuht,22"bind raw - 354 get:uhostproc get:uhost {from key arg} {    if {[lindex [split $arg] 1] == "22"} {        set hostname "[lindex [split $arg] 2]@[lindex [split $arg] 3]"        set nickname "[lindex [split $arg] 4]"        # do stuff here    }}</code></pre></div>I prefer special formatted who's as it does not return all the other junk.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Thu Sep 06, 2007 2:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-09-06T09:37:11-04:00</updated>

		<published>2007-09-06T09:37:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75753#p75753</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75753#p75753"/>
		<title type="html"><![CDATA[equivalent to getchanhost for a user outside the channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75753#p75753"><![CDATA[
Keep in mind to always explicitly define the return-value when using raw bindings...<blockquote class="uncited"><div>    (17) RAW (stackable)<br>         bind raw &lt;flags&gt; &lt;keyword&gt; &lt;proc&gt;<br>         procname &lt;from&gt; &lt;keyword&gt; &lt;text&gt;<br><br>         Description: previous versions of Eggdrop required a special compile<br>           option to enable this binding, but it's now standard. The keyword<br>           is either a numeric, like "368", or a keyword, such as "PRIVMSG".<br>           from will be the server name or the source user (depending on<br>           the keyword); flags are ignored. The order of the arguments is<br>           identical to the order that the IRC server sends to the bot. The<br>           pre-processing  only splits it apart enough to determine the<br>           keyword. <span style="text-decoration:underline"><strong class="text-strong">If the proc returns 1, Eggdrop will not process the line<br>           any further (this could cause unexpected behavior in some cases).</strong></span><br>         Module: server</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Thu Sep 06, 2007 9:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-09-05T23:57:38-04:00</updated>

		<published>2007-09-05T23:57:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75749#p75749</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75749#p75749"/>
		<title type="html"><![CDATA[equivalent to getchanhost for a user outside the channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75749#p75749"><![CDATA[
The only two methods I can think of currently are either perform a WHOIS or a WHO on that user. Unless if you are an OPER on that network then there are other ways. <br><br>CTCP hmmm, not really sure and it is unreliable since people can change their replies through scripting.<br><br>Obviously a WHO would be more simpler solution:<br><div class="codebox"><p>Code: </p><pre><code>putserv "WHO $nick"</code></pre></div>And then use the raw binding with 352 as the keyword to get that user's user@host. Here is a simple example.<br><div class="codebox"><p>Code: </p><pre><code>bind raw - 352 get:uhostproc get:uhost {from key arg} { set arg [split $arg] set uhost [lindex $arg 2]@[lindex $arg 3] #do your stuff here}</code></pre></div>In my case and honest oppinion:<br><em class="text-italics">You would have to use raw --&gt; if the user is not on any of the channels the bot is on --&gt; so the bot can retrieve that user's user@host</em><br><br>Other than that, I can't think of any other way not to use raw. Because raw is the only way you can retrieve information from the server if you can't see that user on any channel which you are in. (this goes the same if you are a user yourself and not a bot, you have to use: /whois or /who)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Sep 05, 2007 11:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[redlander]]></name></author>
		<updated>2007-09-05T21:57:02-04:00</updated>

		<published>2007-09-05T21:57:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75747#p75747</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75747#p75747"/>
		<title type="html"><![CDATA[equivalent to getchanhost for a user outside the channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75747#p75747"><![CDATA[
Greetings all,<br><br>I'm trying to grab ident@host for a user not in the bot chan. Is there an easy way to do this, or is a raw bind my only option?<br><br>Thanks,<br><br>--red<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6606">redlander</a> — Wed Sep 05, 2007 9:57 pm</p><hr />
]]></content>
	</entry>
	</feed>
