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

	<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>2007-04-24T17:41:28-04:00</updated>

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

		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-04-24T17:41:28-04:00</updated>

		<published>2007-04-24T17:41:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72240#p72240</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72240#p72240"/>
		<title type="html"><![CDATA[a little ban problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72240#p72240"><![CDATA[
Simplest thing would be to add a new test:<br><br>if {![onchan $target $chan]} {putcmdlog "'target' isn't on '$chan'";return 0}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Tue Apr 24, 2007 5:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AskMe]]></name></author>
		<updated>2007-04-24T06:30:54-04:00</updated>

		<published>2007-04-24T06:30:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72230#p72230</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72230#p72230"/>
		<title type="html"><![CDATA[a little ban problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72230#p72230"><![CDATA[
i have take a existing script and modify it a little bit...<br>maybe the structure is not very good but it work exept for 1 thing<br><div class="codebox"><p>Code: </p><pre><code>bind pub f !spam uw:spamkbproc uw:spamkb {nick host hand chan text} {global botnickset rsn SPAMuw:ban $nick $host $hand $chan $text}proc uw:ban {nick host hand chan text} {global botnick uw:spamkb rsn uw:viruskb set target [lindex $text 0]set reason [lindex $rsn 0 end]set bhost [getchanhost $target $chan]set banmask "*!*@[lindex [split $bhost @] 1]" if {[matchattr $target fmo|fmo $chan]} {return 0}if {[matchattr $nick n|-] == "1"} {  putserv "MODE $chan +b $banmask"  putserv "KICK $chan $target :$reason"  } elseif {$target != $botnick} {if {[matchattr $target n|-] == "0"} {if {[matchattr $target fmo|fmo $chan]} {return 0} if {[matchattr $nick -|o $chan] == 1} {  putserv "MODE $chan +b $banmask"  putserv "KICK $chan $target :$reason"   } elseif {[matchattr $target -|o $chan] == 0} {  putserv "MODE $chan +b $banmask"  putserv "KICK $chan $target :$reason"  } else {  putserv "NOTICE $nick : You don`t have permission to kick the Op $target" }} elseif {[matchattr $target n|-] == 1} {    putserv "NOTICE $nick : You don`t have permission to kick the Op $target"}} else { putquick "NOTICE $nick : [censored] you"}}</code></pre></div>if i make !spam nick in the channel it ban like a want.. ex: *!*@host<br><br>but if a make the command with a nick who isnt in the chan anynore the bot place a ban *!*@ and thats the part i dont want... <br><br>i know its a little thing but i cant find how to resolve it.... its probably a if command but i cant find the variable (im a neeb in tcl] <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br><strong class="text-strong">i want to keep those flag</strong><div class="codebox"><p>Code: </p><pre><code>if {[matchattr $target fmo|fmo $chan]} {return 0}</code></pre></div><strong class="text-strong">so probably this is going to garbage</strong><div class="codebox"><p>Code: </p><pre><code>if {[matchattr $nick n|-] == "1"}if {[matchattr $target n|-] == "0"} if {[matchattr $nick -|o $chan] == 1}} elseif {[matchattr $target n|-] == 1}</code></pre></div>i juste whant to keep de kick/ban procedure in proc uw:ban and protect the fmo flag from beeing ban... <br><br>and if you have some idea how to improve or simplify the script all the commentary are welcome<br><br>thanks[/code]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8905">AskMe</a> — Tue Apr 24, 2007 6:30 am</p><hr />
]]></content>
	</entry>
	</feed>
