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

	<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>2008-11-21T20:01:10-04:00</updated>

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

		<entry>
		<author><name><![CDATA[sutkida]]></name></author>
		<updated>2008-11-21T20:01:10-04:00</updated>

		<published>2008-11-21T20:01:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85937#p85937</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85937#p85937"/>
		<title type="html"><![CDATA[How to exempt ops and voiced users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85937#p85937"><![CDATA[
tried the code but didn't worked.but it's ok now..found an alternative to that.here's the full code btw.<div class="codebox"><p>Code: </p><pre><code>### Features:# * Sets a 2 Minute Channel ban on user who writes any of the#   defined bad words# * Doesn't ban users with +o OR +f flags# * Logs ALL user/op messages containing the defined words# * Strips Character Codes from Messages### Set Bad Words that you want the Bot to Kick onset badwords { blah.blah}### Set Your Ban Reasonset badreason "Badword Detected"### Set Ban Timeset bwduration 24h### Begin Script:## (Don't change anything below here... Unless you know tcl)## Binding all Public Messages to our Processbind pubm - * filter_bad_words### Borrowed from awyeahs tcl scripts (www.awyeah.org) ##### awyeah said: Thanks to user and ppslim for this control code removing filterproc ccodes:filter {str} {  regsub -all -- {\003([0-9]{1,2}(,[0-9]{1,2})?)?|\017|\037|\002|\026|\006|\007} $str "" str  return $str}## Starting Processproc filter_bad_words {nick uhost handle channel args} { global badwords badreason banmask botnick bwduration set args [ccodes:filter $args]   set handle [nick2hand $nick]   set banmask "*!*[lindex [split $uhost @] 0]@[lindex [split $uhost @] 1]" foreach badword [string tolower $badwords] {     if {[string match *$badword* [string tolower $args]]}  {       if {[matchattr $handle +f]} {           putlog " $nick ($handle) with +f flags said $args on $channel"       } elseif {[matchattr $handle +o]} {           putlog " $nick ($handle) with +o flags said $args on $channel"       } else {           putlog "KICKED $nick on $channel matched by $args"           putquick "KICK $channel $nick :$badreason"            newchanban $channel $banmask $botnick $badreason $bwduration        }    }  }}# bind pubm - * filter_bad_wordsputlog "Anti Badwords Script Loaded"</code></pre></div>Now how to change the hours into minutes.The script base its bans on the bot's ban-time settings.I don't want to change the bot's ban-time settings.I just want the script to base its ban time within it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10322">sutkida</a> — Fri Nov 21, 2008 8:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Getodacul]]></name></author>
		<updated>2008-11-21T17:09:16-04:00</updated>

		<published>2008-11-21T17:09:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85930#p85930</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85930#p85930"/>
		<title type="html"><![CDATA[How to exempt ops and voiced users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85930#p85930"><![CDATA[
Something like that:<div class="codebox"><p>Code: </p><pre><code># Protect ops (1=on 0=off)set protops 1  # Protect voices (1=on 0=off)set protvoices 1# Protect flags (1=on 0=off)set protflags 1set pflags "of|of"proc filter_bad_words {nick uhost handle channel args} { global badwords badreason banmask botnick bwduration protops protvoices protflags pflags set args [ccodes:filter $args]  set handle [nick2hand $nick]   set banmask "*![lindex [split $uhost @] 0]@[lindex [split $uhost @] 1]"   foreach badword [string tolower $badwords] {        if {[string match *$badword* [string tolower $args]]}  {   if {(($protops == 1) &amp;&amp; ([isop $nick $chan])) || (($protvoices == 1) &amp;&amp; ([isvoice $nick $chan])) || (($protflags == 1) &amp;&amp; ([matchattr $hand $pflags $chan]))} {    putlog "-Anti Abuse Script- $nick ($handle) said $args on $channel"    return 0         } else {           putlog "-Anti Abuse Script- KICKED $nick on $channel matched by $args"           putquick "KICK $channel $nick :$badreason"           newchanban $channel $banmask $botnick $badreason $bwduration       }    }  }}</code></pre></div>It's not tested.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9046">Getodacul</a> — Fri Nov 21, 2008 5:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sutkida]]></name></author>
		<updated>2008-11-21T13:40:34-04:00</updated>

		<published>2008-11-21T13:40:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85926#p85926</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85926#p85926"/>
		<title type="html"><![CDATA[How to exempt ops and voiced users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85926#p85926"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc filter_bad_words {nick uhost handle channel args} { global badwords badreason banmask botnick bwduration set args [ccodes:filter $args]   set handle [nick2hand $nick]   set banmask "*![lindex [split $uhost @] 0]@[lindex [split $uhost @] 1]" foreach badword [string tolower $badwords] {     if {[string match *$badword* [string tolower $args]]}  {       if {[matchattr $nick +f]} {           putlog "-Anti Abuse Script- $nick ($handle) with +f flags said $args on $channel"       } elseif {[matchattr $nick +o]} {           putlog "-Anti Abuse Script- $nick ($handle) with +o flags said $args on $channel"       } else {           putlog "-Anti Abuse Script- KICKED $nick on $channel matched by $args"           putquick "KICK $channel $nick :$badreason"           newchanban $channel $banmask $botnick $badreason $bwduration       }    }  }}</code></pre></div>What to change so that chan ops and voiced are exempted when they speak badwords? In the code only the users that are added to the bot are exempted. A little help please. TYIA.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10322">sutkida</a> — Fri Nov 21, 2008 1:40 pm</p><hr />
]]></content>
	</entry>
	</feed>
