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

	<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-09-09T01:42:42-04:00</updated>

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

		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-09-09T01:42:42-04:00</updated>

		<published>2004-09-09T01:42:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40730#p40730</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40730#p40730"/>
		<title type="html"><![CDATA[Restrictor.tcl not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40730#p40730"><![CDATA[
Well it doesnt ban because L is deopping as i gave L/Q as user account on my bot, but ill give the putlog's a try a see what its doing<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Thu Sep 09, 2004 1:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-09-08T21:27:49-04:00</updated>

		<published>2004-09-08T21:27:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40726#p40726</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40726#p40726"/>
		<title type="html"><![CDATA[Restrictor.tcl not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40726#p40726"><![CDATA[
Try this.<br><div class="codebox"><p>Code: </p><pre><code>bind mode - "-*o*" deop:prot proc deop:prot {nick uhost hand chan mode target} {global botnick if {(![channel get $chan paranoid]) || ([string equal -nocase $botnick $nick]) || ([string equal -nocase $target $nick]) || ([matchattr $hand o|o $chan]) || (![string match "*-o*" $mode])} { return 0 }  if {([string match "*-o*" $mode])} &amp;&amp; ([string equal -nocase $botnick $target]) &amp;&amp; (![string equal "L" $nick])} {  putquick "PRIVMSG [cserve $chan] :chanlev $chan $nick -aovgm"  putquick "PRIVMSG [cserve $chan] :deopall $chan"  putquick "MODE $chan -o+b $nick [maskhost [getchanhost $nick $chan]]" -next  putquick "KICK $chan $nick :Do not abuse your op!" -next; return 0  }}proc cserve {chan} { if {([onchan Q $chan])} { return "Q" }   elseif {([onchan L $chan])} { return "L" }   else { return "" }}</code></pre></div>Also try using putlogs in each putquick line so you can check to see which line here is being called more than once, probobaly because -o has been triggered alot of times. It looks fine to me. Maybe another -o mode bind is being triggered or something of the type.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Sep 08, 2004 9:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-09-08T16:57:21-04:00</updated>

		<published>2004-09-08T16:57:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40720#p40720</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40720#p40720"/>
		<title type="html"><![CDATA[Restrictor.tcl not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40720#p40720"><![CDATA[
I could use some help here, this is a bug and i have no clue where its coming from.<br><div class="codebox"><p>Code: </p><pre><code>bind mode - "* -o" deop:prot proc deop:prot {nick uhost hand chan mode target} { global botnick if {(![channel get $chan paranoid]) || ([string equal -nocase $botnick $nick]) || ([string equal -nocase $target $nick]) || ([matchattr $hand o|o $chan])} { return 0 } if {([string match "*-o*" $mode]) &amp;&amp; ($target == "$botnick")} { putquick "PRIVMSG [cserve $chan] :chanlev $chan $nick -aovgm"putquick "PRIVMSG [cserve $chan] :deopall $chan"putserv "MODE $chan +b [maskhost [getchanhost $nick $chan]]" -next putserv "KICK $chan $nick :Do not abuse your op!" -next; return 0 } elseif { ([string match "*-o*" $mode]) &amp;&amp; ($target != "")} { putquick "MODE $chan -o+b+o $nick [maskhost [getchanhost $nick $chan]] $target" -next putquick "KICK $chan $nick :Do not abuse your op." -next; return 0 } } proc cserve {chan} {if {[onchan Q $chan]} {return "Q"} elseif {[onchan L $chan]} {return "L"} else {return ""}}</code></pre></div>Now what happens when someone deops the bot is this.<br><div class="codebox"><p>Code: </p><pre><code>[22:57:07] * rd^ sets mode: -o Q13[22:57:07] * xs4all.nl.quakenet.org sets mode: -oooooo rd^ HauKKa` diabolikal v1per MeTroiD fishbot[22:57:07] * xs4all.nl.quakenet.org sets mode: -o L[22:57:07] * xs4all.nl.quakenet.org sets mode: +o L[22:57:07] * L sets mode: +o Q13[22:57:08] * Q13 sets mode: +b rd^!*@*[22:57:08] * Info: This rd^!*@* ban affects rd^[22:57:08] * L sets mode: +o MeTroiD[22:57:08] -L- Done.[22:57:11] * Q13 sets mode: +b L!*@*[22:57:11] * Info: This L!*@* ban affects @L[22:57:19] * Q13 sets mode: +b fishbot!*@*</code></pre></div>It bans everyone that was previously opped<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Wed Sep 08, 2004 4:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-09-07T02:18:54-04:00</updated>

		<published>2004-09-07T02:18:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40668#p40668</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40668#p40668"/>
		<title type="html"><![CDATA[Restrictor.tcl not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40668#p40668"><![CDATA[
Yeah this is why i don't get why the other format didnt work :&lt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Tue Sep 07, 2004 2:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-09-07T02:00:40-04:00</updated>

		<published>2004-09-07T02:00:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40667#p40667</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40667#p40667"/>
		<title type="html"><![CDATA[Restrictor.tcl not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40667#p40667"><![CDATA[
Haha, okay actually I didn't change anything or do anything new if you look closer.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"> <br>All I did was grouped all your conditions into one which made it easier to read and to implement.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"> <br><br>Next time use putlogs to see the outputs and check them.<br>E.g. putlog "Banmask: $target"<br>#To see the banmask banned by the user (in your case)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue Sep 07, 2004 2:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-09-07T01:56:03-04:00</updated>

		<published>2004-09-07T01:56:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40666#p40666</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40666#p40666"/>
		<title type="html"><![CDATA[Restrictor.tcl not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40666#p40666"><![CDATA[
Wow, thanks that actually worked exactly like i wanted it to work :]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Tue Sep 07, 2004 1:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-09-06T23:44:02-04:00</updated>

		<published>2004-09-06T23:44:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40663#p40663</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40663#p40663"/>
		<title type="html"><![CDATA[Restrictor.tcl not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40663#p40663"><![CDATA[
Okay, here try this.<br>I've reduced most lines into one and shortened it.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"> <br><div class="codebox"><p>Code: </p><pre><code>bind mode - "+*b*" ban:protproc ban:prot {nick uhost hand chan mode target} {   global botnickif {(![channel get $chan paranoid]) || ([channel get $chan +enforce]) || ([string equal -nocase $botnick $nick]) || ([matchattr $hand o|o $chan])} { return 0 } if {([string match "*+b*" $mode]) &amp;&amp; ($target != "")} {   putquick "MODE $chan -o+b-b $nick [maskhost [getchanhost $nick $chan]] $target" -next   putquick "KICK $chan $nick :Do not ban that address!" -next; return 0   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Sep 06, 2004 11:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-08-31T13:59:29-04:00</updated>

		<published>2004-08-31T13:59:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40466#p40466</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40466#p40466"/>
		<title type="html"><![CDATA[Restrictor.tcl not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40466#p40466"><![CDATA[
Tried it but it doesnt work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Tue Aug 31, 2004 1:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-08-31T10:00:18-04:00</updated>

		<published>2004-08-31T10:00:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40464#p40464</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40464#p40464"/>
		<title type="html"><![CDATA[Restrictor.tcl not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40464#p40464"><![CDATA[
<blockquote class="uncited"><div>Hopefully provided the modes are not +bb, +bbb or even more heh. (then there might be some adjustment required)</div></blockquote><blockquote class="uncited"><div>mode changes are broken down into their component parts before being sent here, so the &lt;mode-change&gt; will always be a single mode, such as "+m" or "-o".</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Tue Aug 31, 2004 10:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-08-31T08:09:55-04:00</updated>

		<published>2004-08-31T08:09:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40451#p40451</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40451#p40451"/>
		<title type="html"><![CDATA[Restrictor.tcl not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40451#p40451"><![CDATA[
You can always do:<br><div class="codebox"><p>Code: </p><pre><code>putserv "MODE $chan -b $vict"</code></pre></div>As 'user' said, it will unban the last placed ban when you bind on +b. Hopefully provided the modes are not +bb, +bbb or even more heh. (then there might be some adjustment required)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue Aug 31, 2004 8:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-08-31T01:24:17-04:00</updated>

		<published>2004-08-31T01:24:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40436#p40436</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40436#p40436"/>
		<title type="html"><![CDATA[Restrictor.tcl not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40436#p40436"><![CDATA[
I've tried something else, and this works but i've seen it get errors sometimes <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><div class="codebox"><p>Code: </p><pre><code>bind mode -|-  "* +b" modes:savebanproc modes:saveban {nick host hand chan mode vict} { global lastban  if {($mode == "+b")} {    set lastban($chan) $vict  }}bind mode - "* +b" banprotproc banprot {nick host hand chan mode vict} {  global botnick protector lastbanif {![channel get $chan paranoid]} { return  } if {[channel get $chan enforce]} { return  }   if {![validuser $hand]} {    if {[string tolower $nick] == [string tolower $botnick]} { return }    if {![matchattr $hand o]} {putquick "MODE $chan -b $lastban($chan)"unset lastban($chan)       putquick "MODE $chan -o+b  $nick [maskhost [getchanhost $nick $chan]]"putquick "KICK $chan $nick :$protector(reason)"    }  } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Tue Aug 31, 2004 1:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-08-30T14:41:19-04:00</updated>

		<published>2004-08-30T14:41:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40421#p40421</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40421#p40421"/>
		<title type="html"><![CDATA[Re: Restrictor.tcl not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40421#p40421"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>pushmode -b [lindex [expr [llength [chanbans $chan]] -1] 0]</code></pre></div></div></blockquote>how about <div class="codebox"><p>Code: </p><pre><code>pushmode $chan -b $vict</code></pre></div> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><blockquote class="uncited"><div><blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>bind mode - "* +b" do_on_ban...putserv "MODE $chan +b [maskhost [getchanhost $nick $chan]]"</code></pre></div></div></blockquote>seems like there shouldn't be a space in your bind to me... <div class="codebox"><p>Code: </p><pre><code>bind mode - "*+b*" do_on_ban</code></pre></div></div></blockquote>The space in the bind is there for a reason. Your bind would match any mode on a channel with "+b" in its name <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=2878">user</a> — Mon Aug 30, 2004 2:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-08-30T14:04:30-04:00</updated>

		<published>2004-08-30T14:04:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40419#p40419</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40419#p40419"/>
		<title type="html"><![CDATA[Restrictor.tcl not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40419#p40419"><![CDATA[
Yoohoo, The banning works just fine. Its the unbanning, read the post next time plz <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_neutral.gif" width="15" height="15" alt=":|" title="Neutral"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Mon Aug 30, 2004 2:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2004-08-30T13:43:43-04:00</updated>

		<published>2004-08-30T13:43:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40417#p40417</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40417#p40417"/>
		<title type="html"><![CDATA[Re: Restrictor.tcl not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40417#p40417"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>bind mode - "* +b" do_on_ban...putserv "MODE $chan +b [maskhost [getchanhost $nick $chan]]"</code></pre></div></div></blockquote>seems like there shouldn't be a space in your bind to me... <div class="codebox"><p>Code: </p><pre><code>bind mode - "*+b*" do_on_ban</code></pre></div>Also seems like you wouldn't use <em class="text-italics">putserve "MODE $chan +b...</em>, but rather the <em class="text-italics">pushmode</em> command.<div class="codebox"><p>Code: </p><pre><code>pushmode $chan +b...</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2706">YooHoo</a> — Mon Aug 30, 2004 1:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-08-30T08:40:41-04:00</updated>

		<published>2004-08-30T08:40:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40403#p40403</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40403#p40403"/>
		<title type="html"><![CDATA[Restrictor.tcl not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40403#p40403"><![CDATA[
nope, nothing happens :\<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Mon Aug 30, 2004 8:40 am</p><hr />
]]></content>
	</entry>
	</feed>
