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

	<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-09-17T04:42:21-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-09-17T04:42:21-04:00</updated>

		<published>2002-09-17T04:42:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10994#p10994</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10994#p10994"/>
		<title type="html"><![CDATA[!isop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10994#p10994"><![CDATA[
It looks like you are getting mixed up, as to what the command does.<br><br>If you see the exmple I gave, it will trigger the return when the person is not a OP (IE, they don't have a @ next to there nickname on IRC).<br><br>On top of this, it looks like you fail to grasp what scripting does/how it works.<br><br>If you are trying to send a message to non-ops, to say they can't use the command, then why are you using return. Return is used, to pass control back to the script that called the script in question, eventualy back to eggdrop itself.<br><br>On top of this, if you return when the user is a OP, then the script wont for the OP's either.<br><br>The "isop" command returns a number. 1 represents true, 0 respresents false.<br><br>The if command, triggers code, based on the conditions. IE, if true, then trigger, if false don't.<br><br>EG<br>ppslim is OP on #help<br><br>if {[isop ppslim #help]} { CODE WORKS }<br><br>The ! is used to reverse the outcome of a command.<br><br>IE, TRUE becomes FALSE, and FALSE becomes TRUE.<br><br>Thus<br><br>if {![isop ppslim #help]} { CODE DOES NOT WORK }<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Sep 17, 2002 4:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-09-16T18:12:38-04:00</updated>

		<published>2002-09-16T18:12:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10983#p10983</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10983#p10983"/>
		<title type="html"><![CDATA[!isop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10983#p10983"><![CDATA[
isop worked, but i am looking for return 0 when the person hitting the trigger is _not_ an op. i tried doing it like that and then using an else statement to tell the non ops that only ops were permitted to use it...but it didn't work.<p>Statistics: Posted by Guest — Mon Sep 16, 2002 6:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-09-16T17:54:39-04:00</updated>

		<published>2002-09-16T17:54:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10980#p10980</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10980#p10980"/>
		<title type="html"><![CDATA[!isop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10980#p10980"><![CDATA[
That will trigger if the nickname <strong class="text-strong">is</strong> a op.<br><br>Just change it to<br><div class="codebox"><p>Code: </p><pre><code>if {![isop $nick $chan]} { return }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Sep 16, 2002 5:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-09-16T16:52:25-04:00</updated>

		<published>2002-09-16T16:52:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10976#p10976</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10976#p10976"/>
		<title type="html"><![CDATA[!isop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10976#p10976"><![CDATA[
if {[isop $nick $chan]} {return 0} <br><br>try that<p>Statistics: Posted by Guest — Mon Sep 16, 2002 4:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-09-16T16:34:53-04:00</updated>

		<published>2002-09-16T16:34:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10975#p10975</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10975#p10975"/>
		<title type="html"><![CDATA[!isop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10975#p10975"><![CDATA[
what is the mIRCscript statement !isop (is not op) version in tcl? anyone? <br><br> if {[!isop $nick $chan]} { }<br><br>i want it to halt if they are not opped,<br><br>oh, and while you are there...anyone know the one for not voiced, i wanna make one command ops only, and the other voice only. (i am editing the quote.tcl from the archive...having anyone and everyone being able to trigger/add quotes would be a mess)<p>Statistics: Posted by Guest — Mon Sep 16, 2002 4:34 pm</p><hr />
]]></content>
	</entry>
	</feed>
