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

	<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-05-10T12:43:23-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2004-05-10T12:43:23-04:00</updated>

		<published>2004-05-10T12:43:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36253#p36253</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36253#p36253"/>
		<title type="html"><![CDATA[Small problem with !op script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36253#p36253"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - !op pub_op proc pub_op {nick mask hand chan text} { if {[isop $nick $chan] || [matchattr $hand o|o $chan]} { set opname "[lindex $text 0]" if {$opname != "" &amp;&amp; [matchattr $hand o|o $chan]} { pushmode $chan +o $nick } elseif {$opname != ""} {pushmode $chan +o $opname }} } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Mon May 10, 2004 12:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Real]]></name></author>
		<updated>2004-05-10T11:11:11-04:00</updated>

		<published>2004-05-10T11:11:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36251#p36251</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36251#p36251"/>
		<title type="html"><![CDATA[Small problem with !op script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36251#p36251"><![CDATA[
Hello<br><br>I want to make a script that has this:<br><br>Owners (or higher) can use " !op nick " to op this person. Nick is optional, otherwise it will op the person himself.<br><br>But I also want the script to let ops in the channel use the command. So everybody who has op, can use " !op nick " too, and that's were the problem is:<br><div class="codebox"><p>Code: </p><pre><code>bind pub o|o !op pub_op_ownbind pub - !op pub_opproc pub_op {nick mask hand chan text} { if {[isop $nick $chan]} {     set opname "[lindex $text 0]"if {$opname != ""} { pushmode $chan +o $opname }     }}proc pub_op_own {nick mask hand chan text} {     set opname "[lindex $text 0]"if {$opname == ""} {       pushmode $chan +o $nick }if {$opname != ""} { pushmode $chan +o $opname }     }</code></pre></div>So as I've expected, only the second proc works now, so ops cannot use the !op command.<br><br>Any solution to this? Thank you <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4669">Real</a> — Mon May 10, 2004 11:11 am</p><hr />
]]></content>
	</entry>
	</feed>
