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

	<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>2005-03-06T16:03:26-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Burke]]></name></author>
		<updated>2005-03-06T16:03:26-04:00</updated>

		<published>2005-03-06T16:03:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47250#p47250</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47250#p47250"/>
		<title type="html"><![CDATA[who request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47250#p47250"><![CDATA[
<blockquote class="uncited"><div>2 sidenote:<br>1st /who will never contain the auth name unless they are using +x mode</div></blockquote>this is 100% wrong.<br>/who #channel %nacrihf<br>(you need to be on that channel)<br>the server will you return the auths too.<br><br>"<br>Or you could start by reading the Quakenet news <br><br>And i quote <br><br>Quote:<br>#8 USERIP will return 127.0.0.1 (as will WHOX) for all users other than you."<br><br>why this will affect the ident after a /who request?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5969">Burke</a> — Sun Mar 06, 2005 4:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-03-06T04:06:34-04:00</updated>

		<published>2005-03-06T04:06:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47224#p47224</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47224#p47224"/>
		<title type="html"><![CDATA[who request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47224#p47224"><![CDATA[
2 sidenote:<br>1st /who will never contain the auth name unless they are using +x mode<br>2nd the proper way to refresh the bot internal list is "resetchan #channel", this will call a /mode #channel +b, /mode #channel and a /who #channel and save the incoming data. this will consume a bit more than 12kb per 100 users and bans. Unless you are on a weak connection this should be no problem calling once in a while (every 5-10min).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sun Mar 06, 2005 4:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2005-03-05T21:23:08-04:00</updated>

		<published>2005-03-05T21:23:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47212#p47212</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47212#p47212"/>
		<title type="html"><![CDATA[who request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47212#p47212"><![CDATA[
Or you could start by reading the Quakenet news<br><br>And i quote<br><blockquote class="uncited"><div>#8 USERIP will return 127.0.0.1 (as will WHOX) for all users other than you.</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Sat Mar 05, 2005 9:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2005-03-04T09:50:40-04:00</updated>

		<published>2005-03-04T09:50:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47161#p47161</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47161#p47161"/>
		<title type="html"><![CDATA[who request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47161#p47161"><![CDATA[
<blockquote class="uncited"><div>RAW - Return 1 to ask the bot not to process the server text.</div></blockquote>...so just return 1 from the proc when you recieve a WHO reply of your custom format. (make sure you don't return 1 when you recieve a normal reply)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Mar 04, 2005 9:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-03-04T09:33:54-04:00</updated>

		<published>2005-03-04T09:33:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47160#p47160</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47160#p47160"/>
		<title type="html"><![CDATA[who request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47160#p47160"><![CDATA[
I'm not sure how it is changed, probobaly by another script, which effects it. Everytime the bot who's or binds to raw 352 the getchanhost will be changed.<br><br>getchanhost always gives replies =&gt; <a href="mailto:ident@host.domain.com">ident@host.domain.com</a><br><br>This will be same as the variable uhost, host we use for most proc's depending upon the bind.<br><br>If you only want the 'ident' use: [lindex [split [getchanhost $nick $chan] @] 0]<br>If you only want the 'host' use: [lindex [split [getchanhost $nick $chan] @] 1]<br>If you only want the 'domain' use: [lindex [split [maskhost [getchanhost $nick $chan]] @] 1]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Fri Mar 04, 2005 9:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Burke]]></name></author>
		<updated>2005-03-04T09:21:40-04:00</updated>

		<published>2005-03-04T09:21:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47159#p47159</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47159#p47159"/>
		<title type="html"><![CDATA[who request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47159#p47159"><![CDATA[
@ gb<br>your script works fine, but<br><br>my problem is:<br>.tcl getchanhost Burke<br>--&gt;  return: myIdent@host<br>after executing this script OR manuel a /who send to the server<br><br>.tcl getchanhost Burke<br>--&gt; return: 127.0.0.1@host<br><br>the ident from which i can get with getchanhost will be changed to a ip. my network is <a href="http://www.quakenet.org" class="postlink">www.quakenet.org</a>, and there are some news about those ip. i don`t understand it.<br><br>i make a /who request to the server and the getchanhost return will be changed.<br><br>my first post:<blockquote class="uncited"><div>me was told that i should not use just my own who to the server. this cause some problems.</div></blockquote>anyone here, which is using quakenet and tested this? it may be sounds crazy, but it`s true.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5969">Burke</a> — Fri Mar 04, 2005 9:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2005-03-01T15:25:52-04:00</updated>

		<published>2005-03-01T15:25:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47112#p47112</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47112#p47112"/>
		<title type="html"><![CDATA[who request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47112#p47112"><![CDATA[
I'm not sure if I understand what you're after, but something like this would catch the reply from a raw who..<br><div class="codebox"><p>Code: </p><pre><code>puthelp "WHO #chan %nacrihf"</code></pre></div><div class="codebox"><p>Code: </p><pre><code>bind raw - 352 reply:whoproc reply:who {from key arg} { # $arg contains all the info}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Tue Mar 01, 2005 3:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Burke]]></name></author>
		<updated>2005-03-01T14:05:52-04:00</updated>

		<published>2005-03-01T14:05:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47110#p47110</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47110#p47110"/>
		<title type="html"><![CDATA[who request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47110#p47110"><![CDATA[
i know the correct string. this is not my problem.<br>whois raw works fine, but it is not really possible to whois everyone (to many whois, to many users....) /who is fine<br>my network is quakenet.<br>the who with those options will recive auth, realname etc.....<br><br>the problem is if i let the bot send those /who #channel options to the server a internal function got changed then.<br>getchanhost nickname = ident@host<br>after this /who it will be ANip @ host.... this is the problem and i want to prevent this.<br><br>TO MODERATOR: did i poste as script request?<br>- well, please move to scripting help. it`s not a request, i will code it myself <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> the problem is only a small about those /who.......<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5969">Burke</a> — Tue Mar 01, 2005 2:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2005-03-01T13:08:10-04:00</updated>

		<published>2005-03-01T13:08:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47107#p47107</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47107#p47107"/>
		<title type="html"><![CDATA[who request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47107#p47107"><![CDATA[
I don't know which ircd you use but generally as I am on DALnet, bahamut, unreal, ultimate and the most common ones have replies like:<br><br>/who adapter<br><div class="codebox"><p>Code: </p><pre><code>* adapter G awyeah@awyeah.org :0 2Powered ßy 14(7,7     0,1  Energizer  adapter End of /WHO list.</code></pre></div>The extra "%options" setting is for the ircd you use. So I have no idea about this as I have never encountered this myself. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><br><blockquote class="uncited"><div>but i need more infos, i wanted know away status, authname etc. </div></blockquote>The best would be whois in this case. The whois block shows all necessary information from which channels the nick is on, to away status, which server is the client using, all the /who line info as well plus shows if nick is identified, is the user an ircop and so on? Then you can go ahead and do invidiual binds for each raw in the whois.<br><br>Anyway in a general case in your client if:<br><div class="codebox"><p>Code: </p><pre><code>/who #chan %nacrihf</code></pre></div>works, then... this with tcl should also work technically:<br><div class="codebox"><p>Code: </p><pre><code>putserv "WHO #chan %nacrihf" orputserv "WHO #chan :%nacrihf"</code></pre></div>Not sure but try checking your ircd manual they might give the correct way for how to send a who string to the server when you include these extra switches (options).<p>Statistics: Posted by Guest — Tue Mar 01, 2005 1:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2005-03-01T13:07:14-04:00</updated>

		<published>2005-03-01T13:07:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47106#p47106</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47106#p47106"/>
		<title type="html"><![CDATA[who request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47106#p47106"><![CDATA[
<blockquote class="uncited"><div>I don't know which ircd you use but generally as I am on DALnet, bahamut, unreal, ultimate and the most common ones have replies like:<br><br>/who adapter<br><div class="codebox"><p>Code: </p><pre><code>* adapter G awyeah@awyeah.org :0 2Powered ßy 14(7,7     0,1  Energizer  adapter End of /WHO list.</code></pre></div>The extra "%options" setting is for the ircd you use. So I have no idea about this as I have never encountered this myself. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><br><blockquote class="uncited"><div>but i need more infos, i wanted know away status, authname etc. </div></blockquote>The best would be whois in this case. The whois block shows all necessary information from which channels the nick is on, to away status, which server is the client using, all the /who line info as well plus shows if nick is identified, is the user an ircop and so on? Then you can go ahead and do invidiual binds for each raw in the whois.</div></blockquote>Anyway in a general case in your client if:<br><div class="codebox"><p>Code: </p><pre><code>/who #chan %nacrihf</code></pre></div>works, then... this with tcl should also work technically:<br><div class="codebox"><p>Code: </p><pre><code>putserv "WHO #chan %nacrihf" orputserv "WHO #chan :%nacrihf"</code></pre></div>Not sure but try checking your ircd manual they might give the correct way for how to send a who string to the server when you include these extra switches (options).<p>Statistics: Posted by Guest — Tue Mar 01, 2005 1:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2005-03-01T13:02:46-04:00</updated>

		<published>2005-03-01T13:02:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47105#p47105</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47105#p47105"/>
		<title type="html"><![CDATA[who request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47105#p47105"><![CDATA[
I don't know which ircd you use but generally as I am on DALnet, bahamut, unreal, ultimate and the most common ones have replies like:<br><br>/who adapter<br><div class="codebox"><p>Code: </p><pre><code>* adapter G awyeah@awyeah.org :0 2Powered ßy 14(7,7     0,1  Energizer  adapter End of /WHO list.</code></pre></div><blockquote class="uncited"><div>but i need more infos, i wanted know away status, authname etc. </div></blockquote>The best would be whois in this case. The whois block shows all necessary information from which channels the nick is on, to away status, which server is the client using, all the /who line info as well plus shows if nick is identified, is the user an ircop and so on? Then you can go ahead and do invidiual binds for each raw in the whois.<p>Statistics: Posted by Guest — Tue Mar 01, 2005 1:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Burke]]></name></author>
		<updated>2005-03-01T11:53:02-04:00</updated>

		<published>2005-03-01T11:53:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47103#p47103</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47103#p47103"/>
		<title type="html"><![CDATA[who request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47103#p47103"><![CDATA[
hey awyeah<br>thank you for your nice and avencend reply(s).<br>you make good answer, but you failed to see the important point. in the first post i wrote:<br><blockquote class="uncited"><div>.tcl set x "[getchanhost $nickname]" will set x to <a href="mailto:ident@provider.name">ident@provider.name</a>.<br><br>   puthelp "who #chan %nacrihf"<br><br>will affect that next time .tcl set x [getchanhost $nickname] will return <a href="mailto:anip@provider.name">anip@provider.name</a>. (sorry, next time i will use some controll codes to make this better viewable, anip@ was not a good way.)</div></blockquote>the ident filed will changed to AnIp @ provider.host. That was my problem and reason for asking here.<br><br>What is to do in the next steps is not so hard. I know how with some things like lindex split.... for the timer i can use bind time or i can use bind pub too. anyway. etc. etc....<br><div class="codebox"><p>Code: </p><pre><code>puthelp "who #chan"# or maybe putserv "WHO #chan"</code></pre></div>will return a server reply like<br>channel nickname H ident@host :3 realname<br>(you can check this with your client too with /who #channel  (mirc, the others i don`t know)<br>-<br>but i need more infos, i wanted know away status, authname etc.<blockquote class="uncited"><div><a href="http://www.cached.net.ms/raw.htm" class="postlink">http://www.cached.net.ms/raw.htm</a><br>354<br>&lt;nick&gt; &lt;info on your request&gt;<br>This raw is triggered when you send a who request with a second parameter. The who request should look like this '/who &lt;string&gt; <em class="text-italics">%&lt;o&gt;'. The <em class="text-italics"> is optional and tells the server to search only in the category you specified. The &lt;o&gt; specifies which info the server returns. Flags: n = nick, a = authnick, c = chann, r = realname, i = ip, h = host, f = away &amp; operstatus.</em></em></div></blockquote><em class="text-italics"><em class="text-italics"><br>/who #channel %options<br>/who #channel %acrihf<br>i need for get all infos i need and wanne have.<br><br>but... as i sayed. example the simple command<br>.tcl getchanhost nickname<br>will get changed then, what is not really easy to understand.</em></em><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5969">Burke</a> — Tue Mar 01, 2005 11:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-02-28T21:38:36-04:00</updated>

		<published>2005-02-28T21:38:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47081#p47081</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47081#p47081"/>
		<title type="html"><![CDATA[who request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47081#p47081"><![CDATA[
Let me lead you into the correct direction. First of all you would need to "bind raw", which will make it a bit difficult. Bind pub is not needed only if you want the bot to /who manually (when you want it to trigger).<br><br>Secondly you need to setup a loop of 3 minutes which will perform "/who $chan" One timer will be outside the proc and the other will be in it. Then bind raw 354 and go ahead and split your variables for nick, then from nick you can use getchanhost to get uhost, and for badrealname you will need to split $arg or whatever you have $text. Normally realnames in /who replies are the in the last, you would need to find the correct lindex number for that and try to match whatever you want via string match, regexp and do your stuff.<br><blockquote class="uncited"><div>i need just a possible /who command which will me return all availible variables and a valid bind raw to catch those wars for further actions. </div></blockquote>Take a look at this script, it is quite similar to as what you want. This is a good reference:<br><br><a href="http://www.r0x0ring.com/dl.php?id=33" class="postlink">http://www.r0x0ring.com/dl.php?id=33</a><br><br>For your type of situation, a very simple example can be this:<br><div class="codebox"><p>Code: </p><pre><code>timer 3 do:whoproc do:who {} { putserv "WHO #channel" timer 3 do:who}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Feb 28, 2005 9:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Burke]]></name></author>
		<updated>2005-02-28T13:48:53-04:00</updated>

		<published>2005-02-28T13:48:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47064#p47064</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47064#p47064"/>
		<title type="html"><![CDATA[who request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47064#p47064"><![CDATA[
hi<br><br>i wanted to a script. /who who #chan %nacrihf every 3 minutes in 1 channel and with bind raw 354 to use all those data (example, ban some authnames, ban realnames, make statistic how on is away, detect trojan clients by random nick+ident+not authed and so on. but that`s hardes as i thinked....<br><br>.tcl set x "[getchanhost $nickname]" will set x to <a href="mailto:ident@provider.name">ident@provider.name</a>.<br>but:<br><br>this little code<div class="codebox"><p>Code: </p><pre><code>bind pub m|- \$who who:chan:send proc who:chan:send { nickname hostname handle channel arguments } {puthelp "who #chan %nacrihf"}</code></pre></div>will affect that next time .tcl set x [getchanhost $nickname] will return <a href="mailto:anip@provider.name">anip@provider.name</a>.<br><br>me was told that i should not use just my own who to the server. this cause some problems.<br><br>i need just a possible /who command which will me return all availible variables and a valid bind raw to catch those wars for further actions.<br><br>please tell me how i can find a doc/examples for that.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5969">Burke</a> — Mon Feb 28, 2005 1:48 pm</p><hr />
]]></content>
	</entry>
	</feed>
