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

	<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-10-24T18:06:19-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Fluxism]]></name></author>
		<updated>2002-10-24T18:06:19-04:00</updated>

		<published>2002-10-24T18:06:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12336#p12336</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12336#p12336"/>
		<title type="html"><![CDATA[+bitch and public command tcl's]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12336#p12336"><![CDATA[
I added the line as suggested, so I now have;<div class="codebox"><p>Code: </p><pre><code>proc op {www liquid2k com slash xzziroz} {if {![matchattr $com o $slash]} { return }set nick [lindex $xzziroz 0]  if {$nick != ""}\{putserv "mode $slash +o $nick" -next}     else {putserv "mode $slash +o $www" -next}}</code></pre></div>But I still have the same problem, the bot ops people it shouldn't be.<br>Pehaps though, as you have pointed out that the script is non too correct, maybe I should stop using it, and try altering another script..<br>Open to suggestions though.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1693">Fluxism</a> — Thu Oct 24, 2002 6:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-10-24T14:28:31-04:00</updated>

		<published>2002-10-24T14:28:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12315#p12315</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12315#p12315"/>
		<title type="html"><![CDATA[+bitch and public command tcl's]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12315#p12315"><![CDATA[
While the code in there is rather up the wall, and <strong class="text-strong"><em class="text-italics">inforrect</em></strong> (You would have to read toher threads to see why). You can simply add that line, below, the "proc op" line.<br><br>You will also need to change the line to<div class="codebox"><p>Code: </p><pre><code>if {![matchattr $com o $slash]} { return }</code></pre></div>While there is nothing to stop a scripter from doing it, it's odd to see variable names like that.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Oct 24, 2002 2:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fluxism]]></name></author>
		<updated>2002-10-24T11:55:32-04:00</updated>

		<published>2002-10-24T11:55:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12304#p12304</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12304#p12304"/>
		<title type="html"><![CDATA[+bitch and public command tcl's]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12304#p12304"><![CDATA[
As ever, thanks for the reply,<br><br>I checked the tcl script, and this is the part which calls the op procedure;<div class="codebox"><p>Code: </p><pre><code>putserv "privmsg $nick :$tex"}proc op {www liquid2k com slash xzziroz} {set nick [lindex $xzziroz 0]  if {$nick != ""}\{putserv "mode $slash +o $nick" -next}     else {putserv "mode $slash +o $www" -next}}proc deop {www liquid2k com slash xzziroz} {</code></pre></div>So would I be right in saying I can just add Papillon's line of code above the 'proc op' line? Or is my lack of tcl know how showing? Or might it have to be included into the current if argument?<div class="codebox"><p>Code: </p><pre><code>if {![matchattr [nick2hand $text $chan] o]} { return }proc op {www liquid2k com slash xzziroz} {set nick [lindex $xzziroz 0]  if {$nick != ""}\{putserv "mode $slash +o $nick" -next}     else {putserv "mode $slash +o $www" -next}}Thanks.</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1693">Fluxism</a> — Thu Oct 24, 2002 11:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-10-23T13:57:47-04:00</updated>

		<published>2002-10-23T13:57:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12237#p12237</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12237#p12237"/>
		<title type="html"><![CDATA[+bitch and public command tcl's]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12237#p12237"><![CDATA[
No need to change this, as you tried to guess, it's part of the code.<br><br>The "if" command, performs actions, based on a set of tests.<br><br>These tests can either equal TRUE or FALSE.<br><br>Running the command "[matchattr [nick2hand $text $chan] o]" is testing to see if the user, that might be opped (IE - %op ppslim - it tests ppslim). If he is +o in the userfile, the it returns TRUE, if not, FALSE.<br><br>Using ! negates a answer.<br><br>So, the above command becomes, if ppslim is <strong class="text-strong">NOT</strong> +o, then return TRUE, else, return FALSE.<br><br>As for where to place the line, it realy depends on the script you are using.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Oct 23, 2002 1:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fluxism]]></name></author>
		<updated>2002-10-23T12:53:34-04:00</updated>

		<published>2002-10-23T12:53:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12236#p12236</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12236#p12236"/>
		<title type="html"><![CDATA[+bitch and public command tcl's]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12236#p12236"><![CDATA[
Thanks for the reply,<br><br>Two questions though, can I add the line anywhere? Though I'm thinking it should go at the start of the script.<br>Also in your line of code, is the exclamation mark part of the code, or does it signify the command character used to op? eg !op. As I have mine set to a % character, so am thinking I need to change this maybe?<br><br>Thanks again.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1693">Fluxism</a> — Wed Oct 23, 2002 12:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2002-10-23T09:18:18-04:00</updated>

		<published>2002-10-23T09:18:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12226#p12226</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12226#p12226"/>
		<title type="html"><![CDATA[+bitch and public command tcl's]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12226#p12226"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {![matchattr [nick2hand $text $chan] o]} { return }</code></pre></div>if u add this line of code in the script it checks if the one beeing oped has the +o flag, that should solve your prob<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Wed Oct 23, 2002 9:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fluxism]]></name></author>
		<updated>2002-10-23T08:59:32-04:00</updated>

		<published>2002-10-23T08:59:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12224#p12224</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12224#p12224"/>
		<title type="html"><![CDATA[+bitch and public command tcl's]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12224#p12224"><![CDATA[
I have my bot set to +bitch on all its channels. But after I added a public command tcl, I've noticed that any +o user can op anyone, regardless as to weather or not the user being op'ed has got the +o flag for that channel. If the just oped user then changes nick, the bot deops them.<br>   I think whats happening is the public command script is giving a standard +o user 'pseudo' +m status as it were, and just opping anyone asked of it, rather than call  an internal routine to see if the user should be op'ed in the first place.<br>   I've tried 3 different public command scripts so far, and they all have this problem. Has anyone else encountered this? Or made a work around for it? Perhaps found a script which checks the user list before it ops someone?<br><br>Thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1693">Fluxism</a> — Wed Oct 23, 2002 8:59 am</p><hr />
]]></content>
	</entry>
	</feed>
