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

	<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>2006-07-22T09:09:09-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-07-22T09:09:09-04:00</updated>

		<published>2006-07-22T09:09:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64787#p64787</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64787#p64787"/>
		<title type="html"><![CDATA[Detecting a users umodes (not flags) in a tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64787#p64787"><![CDATA[
<blockquote class="uncited"><div>Yep.  I know about 307.  Trick is, I want something to happen when a user is <span style="color:darkblue">not</span> registered.  </div></blockquote>then catch the "End of /WHOIS List" numeric reply<br><br>if you still haven't received 307 upon receiving EOW, the nick is not registered (needless to say, you need to maintain track of nicks you inquired about by sending WHOIS; this is commonly done using Tcl's associative arrays)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Jul 22, 2006 9:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[neo42]]></name></author>
		<updated>2006-07-22T08:20:39-04:00</updated>

		<published>2006-07-22T08:20:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64786#p64786</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64786#p64786"/>
		<title type="html"><![CDATA[Detecting a users umodes (not flags) in a tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64786#p64786"><![CDATA[
Yep.  I know about 307.  Trick is, I want something to happen when a user is <span style="color:darkblue">not</span> registered.  Not as easy as trapping the 307.  It should be simple to take the reply from 379, split it, and check for "r" in the umode string, but for some reason the bot isn't getting the 379 response.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7988">neo42</a> — Sat Jul 22, 2006 8:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-07-22T07:14:25-04:00</updated>

		<published>2006-07-22T07:14:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64784#p64784</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64784#p64784"/>
		<title type="html"><![CDATA[Detecting a users umodes (not flags) in a tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64784#p64784"><![CDATA[
as "De_Kus2" made "WHOIS De_Kus":<blockquote class="uncited"><div>:irc.shockerz.net 307 De_Kus2 De_Kus :has identified for this nick</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sat Jul 22, 2006 7:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[neo42]]></name></author>
		<updated>2006-07-21T18:44:08-04:00</updated>

		<published>2006-07-21T18:44:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64777#p64777</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64777#p64777"/>
		<title type="html"><![CDATA[Detecting a users umodes (not flags) in a tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64777#p64777"><![CDATA[
OK here goes... This is the script as it currently exists.  It properly executes the whois, but seems to do nothing with the 379 numeric, which on Unreal Ircd is REPL_WHOISMODES.  I can get the mode string with mIRC, so I know the reply is being made.<br><div class="codebox"><p>Code: </p><pre><code>setudef flag sentry   # channel must have +sentrybind raw - 379 test:whoisbind join * *!*@* exec:whoisproc test:whois { from keyword text } {  putquick "PRIVMSG #mychan :$text"   # just dump reply into chan}proc exec:whois {nick uhost handle chan} {set chan [string tolower $chan] if {[channel get $chan sentry]} {   putserv "whois $nick" }}putlog "gatekeeper.tcl has been loaded successfully. (c)Neo42"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7988">neo42</a> — Fri Jul 21, 2006 6:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[neo42]]></name></author>
		<updated>2006-07-21T15:27:44-04:00</updated>

		<published>2006-07-21T15:27:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64774#p64774</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64774#p64774"/>
		<title type="html"><![CDATA[Detecting a users umodes (not flags) in a tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64774#p64774"><![CDATA[
That's kinda what I thought... I had tried a couple things along that line, but nothing has worked yet.  I'll dig up what I tried and post the code in a bit.  Thanks for the reply.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7988">neo42</a> — Fri Jul 21, 2006 3:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-07-20T04:49:55-04:00</updated>

		<published>2006-07-20T04:49:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64734#p64734</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64734#p64734"/>
		<title type="html"><![CDATA[Detecting a users umodes (not flags) in a tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64734#p64734"><![CDATA[
You will have to relay on the raw reply from whois to contain "blabla is a registered nick" or use a "MODE blabla" and bind RAW MODE to see if it replys something about +r (or +R, depending on ircd).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Thu Jul 20, 2006 4:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[neo42]]></name></author>
		<updated>2006-07-20T00:09:57-04:00</updated>

		<published>2006-07-20T00:09:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64731#p64731</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64731#p64731"/>
		<title type="html"><![CDATA[Detecting a users umodes (not flags) in a tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64731#p64731"><![CDATA[
I'd like for my "doorkeeper" script to kick/ban a user whose nick is not registered or has expired.  I know that umodes like +o and +v are handled by isop(), isvoice(), etc... Is there a way to get/parse a user's umodes to determine if other modes (+r in this instance) are set?  I've checked FAQ's, searched, done my homework... can't find reference to this anywhere.  Ideas anybody?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7988">neo42</a> — Thu Jul 20, 2006 12:09 am</p><hr />
]]></content>
	</entry>
	</feed>
