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

	<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-01-02T10:30:17-04:00</updated>

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

		<entry>
		<author><name><![CDATA[FakeZ]]></name></author>
		<updated>2004-01-02T10:30:17-04:00</updated>

		<published>2004-01-02T10:30:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32073#p32073</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32073#p32073"/>
		<title type="html"><![CDATA[Bad Word script kicks OP's]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32073#p32073"><![CDATA[
Thanx for the "kick" <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>now it works like it should ! <br><div class="codebox"><p>Code: </p><pre><code># Set this to the default password to assign to the added user # record. set bword "badword1" ##Ban time for second warning set ban-time 10 ##Comment for ban set Ban "For abusive language" set flag1 Y set flag2 E set flag3 G ###The bad words add and remove as you please  bind pubm - "*!list*" badword  bind pubm - "*!find*" badword  bind pubm - "*@find*" badword  bind pubm - "*@search*" badword  bind pubm - "*!ctcp*" badword  bind pubm - "*!dcc*" badword ### Channel Flag ### setudef flag badword   proc badword {nick uhost hand chan rest} { if {![channel get $chan badword]} { return } if {[isop $nick $chan]} { return 0 } putlog "$nick $uhost $hand $chan $rest"   global botnick ban-time Ban bword     if {([ matchattr $hand f ])} {          putserv "PRIVMSG $chan :\001ACTION OVER Hears \002$nick\002 And SmiLes L:-)\001"         return 1    } elseif {([matchattr $hand G])} {           chattr $nick +dk      setuser $nick COMMENT "Perm banned for 4 bad word offenses"           putserv "PRIVMSG $chan :$nick You Are Not Welcomed Here Anymore..."      putserv "KICK $chan $nick :$Ban \[Perm\]"            return 1    } elseif {([matchattr $hand E])} {      chattr $nick +G-E      putserv "PRIVMSG $chan :$nick You Have Had Your Chances, Now You Are Out of Here. Strike! two  Your --------=&gt;&gt;&gt; Out."           set banlamer [maskhost [getchanhost $nick $chan]]           newban $banlamer Badword $Ban 120 none           setuser $nick COMMENT "3 Bad Word Offenses"           return 1    } elseif {([matchattr $hand Y])} {      chattr $nick +E-Y      putserv "PRIVMSG $chan :Has taken action on $nick for the 2nd Offense"      set banlamer [maskhost [getchanhost $nick $chan]]           newban $banlamer Badword $Ban 10 none           setuser $nick COMMENT "2 Bad Word Offenses"           return 1    }           adduser $nick [maskhost [getchanhost $nick $chan]]           putserv "PRIVMSG $chan :\001ACTION Detected A Banned Word by $nick\001"           putserv "PRIVMSG $nick :\001ACTION Hey, $nick, Profanity IS BAD,I Will Not allow Such A Thing In This Channel!!!\001"           putserv "PRIVMSG $chan :\001ACTION Bad Language Is Not Fun, $nick Should never have said that...\001"           putserv "KICK $chan $nick :Get The out of here with that kind of talk"           putserv "NOTICE $nick :Please DON'T use that language in $chan"           putserv "NOTICE $nick :\001ACTION Is Frowning At $nick This is your \[1st Warning\]\001"           putserv "NOTICE $nick :If You Continue, You Will Be Banned The Second Time For 1 hour"           chattr $nick +Y           setuser $nick PASS $bword           setuser $nick COMMENT "1st Offense Badword"           return 0     } putlog "\[Word|KiCk\] v3.0 By \002TheGhost\002 is Loaded" </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4045">FakeZ</a> — Fri Jan 02, 2004 10:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-01-02T04:20:54-04:00</updated>

		<published>2004-01-02T04:20:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32061#p32061</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32061#p32061"/>
		<title type="html"><![CDATA[Bad Word script kicks OP's]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32061#p32061"><![CDATA[
Replace the "# whatever you want to do with the channels that don't have the required flag. <br>" with "return"  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"> duh!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Jan 02, 2004 4:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FakeZ]]></name></author>
		<updated>2004-01-02T03:54:17-04:00</updated>

		<published>2004-01-02T03:54:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32060#p32060</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32060#p32060"/>
		<title type="html"><![CDATA[Bad Word script kicks OP's]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32060#p32060"><![CDATA[
The "dont kick OPs" thing works.... but not the chan limitation<br><br>can you plese help me<br><div class="codebox"><p>Code: </p><pre><code># Set this to the default password to assign to the added user# record.set bword "badword1"##Ban time for second warningset ban-time 10##Comment for banset Ban "For abusive language"set flag1 Yset flag2 Eset flag3 G###The bad words add and remove as you please bind pubm - "*!list*" badword bind pubm - "*!find*" badword bind pubm - "*@find*" badword bind pubm - "*@search*" badword bind pubm - "*!ctcp*" badword bind pubm - "*!dcc*" badword### Channel ###setudef flag badword  proc badword {nick uhost hand chan rest} {if {![channel get $chan badword]} { # whatever you want to do with the channels that don't have the required flag. } if {[isop $nick $chan]} { return 0 }putlog "$nick $uhost $hand $chan $rest"  global botnick ban-time Ban bword    if {([ matchattr $hand f ])} {      putserv "PRIVMSG $chan :\001ACTION OVER Hears \002$nick\002 And SmiLes L:-)\001"        return 1} elseif {([matchattr $hand G])} {          chattr $nick +dk  setuser $nick COMMENT "Perm banned for 4 bad word offenses"          putserv "PRIVMSG $chan :$nick You Are Not Welcomed Here Anymore..."  putserv "KICK $chan $nick :$Ban \[Perm\]"        return 1} elseif {([matchattr $hand E])} {  chattr $nick +G-E  putserv "PRIVMSG $chan :$nick You Have Had Your Chances, Now You Are Out of Here. Strike! two  Your --------=&gt;&gt;&gt; Out."          set banlamer [maskhost [getchanhost $nick $chan]]          newban $banlamer Badword $Ban 120 none          setuser $nick COMMENT "3 Bad Word Offenses"          return 1} elseif {([matchattr $hand Y])} {  chattr $nick +E-Y  putserv "PRIVMSG $chan :Has taken action on $nick for the 2nd Offense"  set banlamer [maskhost [getchanhost $nick $chan]]          newban $banlamer Badword $Ban 10 none          setuser $nick COMMENT "2 Bad Word Offenses"          return 1}           adduser $nick [maskhost [getchanhost $nick $chan]]          putserv "PRIVMSG $chan :\001ACTION Detected A Banned Word by $nick\001"          putserv "PRIVMSG $nick :\001ACTION Hey, $nick, Profanity IS BAD,I Will Not allow Such A Thing In This Channel!!!\001"          putserv "PRIVMSG $chan :\001ACTION Bad Language Is Not Fun, $nick Should never have said that...\001"          putserv "KICK $chan $nick :Get The out of here with that kind of talk"          putserv "NOTICE $nick :Please DON'T use that language in $chan"          putserv "NOTICE $nick :\001ACTION Is Frowning At $nick This is your \[1st Warning\]\001"          putserv "NOTICE $nick :If You Continue, You Will Be Banned The Second Time For 1 hour"          chattr $nick +Y          setuser $nick PASS $bword           setuser $nick COMMENT "1st Offense Badword"          return 0 }putlog "\[Word|KiCk\] v3.0 By \002TheGhost\002 is Loaded"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4045">FakeZ</a> — Fri Jan 02, 2004 3:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-01-01T14:41:26-04:00</updated>

		<published>2004-01-01T14:41:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32053#p32053</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32053#p32053"/>
		<title type="html"><![CDATA[Bad Word script kicks OP's]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32053#p32053"><![CDATA[
something like:<div class="codebox"><p>Code: </p><pre><code>setudef flag myflagif {![channel get $chan myflag]} {# whatever you want to do with the channels that don't have the required flag.}</code></pre></div>By default all channels are set to -myflag so, to enable or disable this on them use the .chanset #channel +/- myflag Replace myflag with something that suits your needs and do put the "setudef flag myflag" outside the proc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Jan 01, 2004 2:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2004-01-01T14:37:20-04:00</updated>

		<published>2004-01-01T14:37:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32052#p32052</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32052#p32052"/>
		<title type="html"><![CDATA[Bad Word script kicks OP's]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32052#p32052"><![CDATA[
everything is possible, you just have to get the logic behind ever language<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Thu Jan 01, 2004 2:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FakeZ]]></name></author>
		<updated>2004-01-01T09:31:23-04:00</updated>

		<published>2004-01-01T09:31:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32050#p32050</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32050#p32050"/>
		<title type="html"><![CDATA[Bad Word script kicks OP's]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32050#p32050"><![CDATA[
Ok i will test this ... is it also possible to restrict this script to just one channel ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4045">FakeZ</a> — Thu Jan 01, 2004 9:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2004-01-01T09:27:25-04:00</updated>

		<published>2004-01-01T09:27:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32049#p32049</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32049#p32049"/>
		<title type="html"><![CDATA[Bad Word script kicks OP's]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32049#p32049"><![CDATA[
just add a "if {[isop $nick $chan]} { return 0 }" in the proc and you're done<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Thu Jan 01, 2004 9:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FakeZ]]></name></author>
		<updated>2004-01-01T09:10:41-04:00</updated>

		<published>2004-01-01T09:10:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32048#p32048</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32048#p32048"/>
		<title type="html"><![CDATA[Bad Word script kicks OP's]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32048#p32048"><![CDATA[
Hi all,<br><br>first of all ... Happy new year !  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"> <br><br>I got a problem with this script from The Ghost<br><br><a href="http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&amp;id=29" class="postlink">http://www.egghelp.org/cgi-bin/tcl_arch ... load&amp;id=29</a><br>It kickes Ops an it does a global Ban. Is it possible to fix that ? Or is there a other/betther script avaiable ?<br><br>Thax for your support !<br><br>FakeZ<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4045">FakeZ</a> — Thu Jan 01, 2004 9:10 am</p><hr />
]]></content>
	</entry>
	</feed>
