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

	<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-04-05T10:31:32-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-04-05T10:31:32-04:00</updated>

		<published>2004-04-05T10:31:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35247#p35247</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35247#p35247"/>
		<title type="html"><![CDATA[Having Difficulty With This Script I Wrote.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35247#p35247"><![CDATA[
<blockquote class="uncited"><div>I still use 1.6.12 ::PPPPPPP<br>Go figure.</div></blockquote>huh? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"> strikelight was talking about the fact that in some older versions of eggdrop the changes I have suggested are not "valid" but in your case if you use an 1.6.12 then it's ok to do the changes, if you wish ofcource. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Apr 05, 2004 10:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CoMMy]]></name></author>
		<updated>2004-04-05T07:44:11-04:00</updated>

		<published>2004-04-05T07:44:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35239#p35239</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35239#p35239"/>
		<title type="html"><![CDATA[Having Difficulty With This Script I Wrote.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35239#p35239"><![CDATA[
I still use 1.6.12 ::PPPPPPP<br><br>Go figure.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3555">CoMMy</a> — Mon Apr 05, 2004 7:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-04-05T00:29:36-04:00</updated>

		<published>2004-04-05T00:29:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35229#p35229</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35229#p35229"/>
		<title type="html"><![CDATA[Having Difficulty With This Script I Wrote.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35229#p35229"><![CDATA[
Liar! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Apr 05, 2004 12:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-04-05T00:28:19-04:00</updated>

		<published>2004-04-05T00:28:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35228#p35228</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35228#p35228"/>
		<title type="html"><![CDATA[Having Difficulty With This Script I Wrote.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35228#p35228"><![CDATA[
<blockquote class="uncited"><div>I wonder who still uses old versions of eggdrop and not at least an 1.6.9.. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"></div></blockquote>I for one... and I know many many more who still use older versions.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Mon Apr 05, 2004 12:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-04-05T00:25:54-04:00</updated>

		<published>2004-04-05T00:25:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35227#p35227</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35227#p35227"/>
		<title type="html"><![CDATA[Having Difficulty With This Script I Wrote.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35227#p35227"><![CDATA[
I wonder who still uses old versions of eggdrop and not at least an 1.6.9.. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Apr 05, 2004 12:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-04-04T14:26:48-04:00</updated>

		<published>2004-04-04T14:26:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35214#p35214</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35214#p35214"/>
		<title type="html"><![CDATA[Having Difficulty With This Script I Wrote.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35214#p35214"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>if {![isop $botnick $chan]} {</code></pre></div>should be<div class="codebox"><p>Code: </p><pre><code>if {![botisop $chan]} {</code></pre></div></div></blockquote>"botisop" is not compatible across all eggdrop versions....<br>"isop" of course, is compatible... Thus.... I agree with his usage of "isop"...<br><blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>channel get $chan yourflag</code></pre></div></div></blockquote>Again, another command which isn't even compatible throughout the entire 1.6.x eggdrop branch (go figure..)...<br><br>Checking against "channel info" would be most recommended.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sun Apr 04, 2004 2:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-04-04T09:49:54-04:00</updated>

		<published>2004-04-04T09:49:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35204#p35204</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35204#p35204"/>
		<title type="html"><![CDATA[Having Difficulty With This Script I Wrote.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35204#p35204"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {![isop $botnick $chan]} {</code></pre></div>should be<div class="codebox"><p>Code: </p><pre><code>if {![botisop $chan]} {</code></pre></div><div class="codebox"><p>Code: </p><pre><code>switch -- $mode {"-o" {# your stuff here}"+b" {# your stuff here}}</code></pre></div>as for the<blockquote class="uncited"><div>ischanset $chan yourflag</div></blockquote>wich I guess is a proc that check for a channel flag use<br>the built in<blockquote class="uncited"><div>channel get $chan yourflag</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Apr 04, 2004 9:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CoMMy]]></name></author>
		<updated>2004-04-04T07:35:42-04:00</updated>

		<published>2004-04-04T07:35:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35200#p35200</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35200#p35200"/>
		<title type="html"><![CDATA[Having Difficulty With This Script I Wrote.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35200#p35200"><![CDATA[
I dont know how to apply switch.<br><br>Can you demonstrate for the first 2 commands please ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3555">CoMMy</a> — Sun Apr 04, 2004 7:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-04-04T06:48:26-04:00</updated>

		<published>2004-04-04T06:48:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35199#p35199</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35199#p35199"/>
		<title type="html"><![CDATA[Having Difficulty With This Script I Wrote.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35199#p35199"><![CDATA[
Instead of lots of if's why don't you just use "switch" ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Apr 04, 2004 6:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-04-04T04:47:45-04:00</updated>

		<published>2004-04-04T04:47:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35192#p35192</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35192#p35192"/>
		<title type="html"><![CDATA[Having Difficulty With This Script I Wrote.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35192#p35192"><![CDATA[
"continue" is a command used to skip to the next iteration of a loop...<br>You have no loop... As such, I suspect you meant to use "return" ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sun Apr 04, 2004 4:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CoMMy]]></name></author>
		<updated>2004-04-04T04:12:57-04:00</updated>

		<published>2004-04-04T04:12:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35190#p35190</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35190#p35190"/>
		<title type="html"><![CDATA[Having Difficulty With This Script I Wrote.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35190#p35190"><![CDATA[
This Script, what it does basically, is check the modes of the channel and see if the change is made by unathrorized users and set them back.<br><div class="codebox"><p>Code: </p><pre><code>#Mode Protectionbind mode - * modesproc modes {nick uhost hand chan mode victim} {global botnick ownerif {$nick == "$botnick"} { return 0 }if {![isop $botnick $chan]} {putquick "PRIVMSG X :op $chan" -nextif {[file exists netbots/getops.tcl] || [file exists scripts/getops.tcl]} {set bot [getbot $chan]putbot $bot "gop op $chan $botnick" }}if {$mode == "-o" &amp;&amp; [isbotnick $victim]} {if {![matchattr [nick2hand $nick $chan] o]} {continue}putquick "PRIVMSG X :op $chan" -nextpushmode $chan -o-v+b $nick $nick [nick2hand $nick $chan]putquick "KICK $chan $nick Dont Ever Deop Me" -next }if {$mode == "-o" &amp;&amp; [ischanset $chan protectops]} {if {![matchattr [nick2hand $nick $chan] o]} {continue}if {[isop $victim $chan]} {putquick "MODE $chan -o-v+o+b $nick $nick $victim [nick2hand $nick $chan]" -nextputquick "KICK $chan $nick Operators Are Protected." -next }}if {$mode == "-o" &amp;&amp; [ischanset $chan protectusers]} {if {![matchattr [nick2hand $nick $chan] o]} {continue}if {[matchattr [nick2hand $victim $chan] &amp;o $chan] || [matchattr [nick2hand $victim $chan] o]} {putquick "MODE $chan -o-v+o+b $nick $nick $victim [nick2hand $nick $chan]" -nextputquick "KICK $chan $nick Users Are Protected." -next }}if {$mode == "-v" &amp;&amp; [ischanset $chan protectvoice]} {if {![matchattr [nick2hand $nick $chan] o]} {continue}if {[isvoice $victim $chan]} {putquick "MODE $chan -o-v+v $nick $nick $victim" -nextputnotc $nick "Voiced Users Are Protected In Chan." }}if {$mode == "+b" &amp;&amp; [ischanset $chan protectusers]} {if {![matchattr [nick2hand $nick $chan] &amp;o $chan] || ![matchattr [nick2hand $nick $chan] o]} {continue}if {[matchattr $victim &amp;o $chan] || [matchattr $victim o]} {putquick "MODE $chan -b-o-v+b $victim $nick $nick [nick2hand $nick $chan]" -nextputquick "KICK $chan $nick Users Are Protected." -next }}if {$mode == "+i" &amp;&amp; [ischanset $chan protectchan]} {if {![matchattr [nick2hand $nick $chan] &amp;m $chan] || ![matchattr [nick2hand $nick $chan] o]} {continue}putquick "MODE $chan -i" -nextputquick "MODE $chan -o-v $nick $nick" -nextputquick "KICK $chan $nick You Have No Access To Set +i" -next }if {$mode == "-i" &amp;&amp; [ischanset $chan protectchan]} {if {![matchattr [nick2hand $nick $chan] &amp;m $chan] || ![matchattr [nick2hand $nick $chan] o]} {continue}putquick "MODE $chan +i" -nextputquick "MODE $chan -o-v $nick $nick" -nextputquick "KICK $chan $nick You Have No Access To Set -i" -next }if {$mode == "+s" &amp;&amp; [ischanset $chan protectchan]} {if {![matchattr [nick2hand $nick $chan] &amp;o $chan] || ![matchattr [nick2hand $nick $chan] o]} {continue}putquick "MODE $chan -s" -nextputquick "MODE $chan -o-v $nick $nick" -nextputnotc $nick "Sorry But You Dont Have Access To Set The Channel To +s" }if {$mode == "-s" &amp;&amp; [ischanset $chan protectchan]} {if {![matchattr [nick2hand $nick $chan] &amp;o $chan] || ![matchattr [nick2hand $nick $chan] o]} {continue}putquick "MODE $chan +s" -nextputquick "MODE $chan -o-v $nick $nick" -nextputnotc $nick "Sorry But You Dont Have Access To Set The Channel To -s" }if {$mode == "+p" &amp;&amp; [ischanset $chan protectchan]} {if {![matchattr [nick2hand $nick $chan] &amp;o $chan] || ![matchattr [nick2hand $nick $chan] o]} {continue}putquick "MODE $chan -p" -nextputquick "MODE $chan -o-v $nick $nick" -nextputnotc $nick "Sorry But You Dont Have Access To Set The Channel To +p" }if {$mode == "-p" &amp;&amp; [ischanset $chan protectchan]} {if {![matchattr [nick2hand $nick $chan] &amp;o $chan] || ![matchattr [nick2hand $nick $chan] o]} {continue}putquick "MODE $chan +p" -nextputquick "MODE $chan -o-v $nick $nick" -nextputnotc $nick "Sorry But You Dont Have Access To Set The Channel To -p" }if {$mode == "+k *" &amp;&amp; [ischanset $chan protectchan]} {if {![matchattr [nick2hand $nick $chan] &amp;n $chan] || ![matchattr [nick2hand $nick $chan] m]} {continue}set what [lindex $mode 1]putquick "MODE $chan -k $what" -nextputquick "MODE $chan -o-v $nick $nick" -nextputnotc $nick "Sorry But You Dont Have Access To Set The Channel To +k" }if {$mode == "+m" &amp;&amp; [ischanset $chan protectchan]} {if {![matchattr [nick2hand $nick $chan] &amp;o $chan] || ![matchattr [nick2hand $nick $chan] o]} {continue}putquick "MODE $chan -m" -nextputquick "MODE $chan -o-v $nick $nick" -nextputnotc $nick "Sorry But You Dont Have Access To Set The Channel To +m" }if {$mode == "-m" &amp;&amp; [ischanset $chan protectchan]} {if {![matchattr [nick2hand $nick $chan] &amp;o $chan] || ![matchattr [nick2hand $nick $chan] o]} {continue}putquick "MODE $chan +m" -nextputquick "MODE $chan -o-v $nick $nick" -nextputnotc $nick "Sorry But You Dont Have Access To Set The Channel To -m" }return 1 }#Mode Protection</code></pre></div>The Error i get is this:<blockquote class="uncited"><div>Tcl error [modes]: invoked "continue" outside of a loop</div></blockquote>Can you help me please.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3555">CoMMy</a> — Sun Apr 04, 2004 4:12 am</p><hr />
]]></content>
	</entry>
	</feed>
