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

	<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>2004-02-25T14:34:45-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-02-25T14:34:45-04:00</updated>

		<published>2004-02-25T14:34:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33981#p33981</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33981#p33981"/>
		<title type="html"><![CDATA[check user status]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33981#p33981"><![CDATA[
indeed nice and simple seems like a good basic<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Wed Feb 25, 2004 2:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-02-23T19:37:05-04:00</updated>

		<published>2004-02-23T19:37:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33923#p33923</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33923#p33923"/>
		<title type="html"><![CDATA[check user status]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33923#p33923"><![CDATA[
Like I said, you will need to keep a status on all users that join/part channel, update a variable accordingly, and yes, in one procedure, all you do is lookup a value from a variable (most likely an array in this case), and return the desired result.....<br><br>Without getting too technical with the code....<div class="codebox"><p>Code: </p><pre><code>bind join - * opercheck:joinproc opercheck:join {....} {  # whois the user}bind part - * opercheck:leavebind sign - * opercheck:leaveproc opercheck:leave {...} {  global opercheck  if {[isoper $nick]} {    unset opercheck($nick)  }}bind raw - oper-reply-code-here opercheck:isoperproc opercheck:isoper {...} {  global opercheck  set opercheck($nick) 1}proc isoper {nick} {  global opercheck  info exists opercheck($nick)}</code></pre></div>That's just the rough pseudo-code... You will of course have to add in other checks and actual code... Take into account nick changes, probably want to unset the opercheck variable when the bot joins irc (due to netsplit, or whatnot), etc.. etc..<br><br>With all that in place, you could then use [isoper $nick], just as you would use [isop $nick], etc...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Mon Feb 23, 2004 7:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-02-23T06:43:31-04:00</updated>

		<published>2004-02-23T06:43:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33886#p33886</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33886#p33886"/>
		<title type="html"><![CDATA[check user status]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33886#p33886"><![CDATA[
hmm ok is there a way to check oper status of a user within one proc<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Mon Feb 23, 2004 6:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-02-22T22:24:43-04:00</updated>

		<published>2004-02-22T22:24:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33867#p33867</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33867#p33867"/>
		<title type="html"><![CDATA[check user status]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33867#p33867"><![CDATA[
From the looks of what you are attempting to do, You will need to store the result of the whois in a variable for immediate lookup.  You will need to trigger a "whois" by some event, I suggest triggering it when either the bot joins the channel, and when users join the channel.  Upon receiving the whois, store if the person is an oper or not in a variable, and simply check against that variable next time you want to see if the user is an oper or not.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sun Feb 22, 2004 10:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-02-22T21:32:16-04:00</updated>

		<published>2004-02-22T21:32:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33864#p33864</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33864#p33864"/>
		<title type="html"><![CDATA[check user status]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33864#p33864"><![CDATA[
how do i check user status <br><br>i wana see if a user is a normal user or an oper<br><br>and make isoper<br><div class="codebox"><p>Code: </p><pre><code>proc isoper {nick} {  putserv "whois $nick}bind raw * 313 isoper:rawproc isoper:raw {} {  if {[string match -nocase operator]} {    return 1  }}</code></pre></div>thing is how do i make isoper proc get the return 1 from isoper:raw or how do i do this .. or is there a beter way then using whois .. then binding raw .. ???<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sun Feb 22, 2004 9:32 pm</p><hr />
]]></content>
	</entry>
	</feed>
