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

	<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>2017-02-06T14:12:13-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Mariio1692]]></name></author>
		<updated>2017-02-06T14:12:13-04:00</updated>

		<published>2017-02-06T14:12:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105802#p105802</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105802#p105802"/>
		<title type="html"><![CDATA[channel debug]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105802#p105802"><![CDATA[
Can you add words from the bot debug channel and the ifractor be expelled where the protection is active?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12675">Mariio1692</a> — Mon Feb 06, 2017 2:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2016-06-27T21:38:39-04:00</updated>

		<published>2016-06-27T21:38:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105220#p105220</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105220#p105220"/>
		<title type="html"><![CDATA[Bad phrase or word]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105220#p105220"><![CDATA[
How you can modify the code to add bad words by private message to BoT ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Mon Jun 27, 2016 9:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SmasHinG]]></name></author>
		<updated>2013-02-16T10:37:54-04:00</updated>

		<published>2013-02-16T10:37:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101030#p101030</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101030#p101030"/>
		<title type="html"><![CDATA[Bad phrase or word]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101030#p101030"><![CDATA[
Sorry my mistake <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>Catch  /me tex ?  in tcl ACTION  i want catch pubmsg and action. <br>Make to work badwords cmds to pubmsg and dcc <br>Can you make for every bad word reason example: !badword [censored] you using bad word out !   <br>example2: !badword somebad you are stupid to use this word  <br>and etc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11766">SmasHinG</a> — Sat Feb 16, 2013 10:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2013-02-16T06:16:37-04:00</updated>

		<published>2013-02-16T06:16:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101022#p101022</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101022#p101022"/>
		<title type="html"><![CDATA[Bad phrase or word]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101022#p101022"><![CDATA[
Have you atleast tested the script ?<br><br>Have you seen <br><blockquote class="uncited"><div>putserv "PRIVMSG $chan :\002$nick\002 - '\00312$what\003' already exists in the database." </div></blockquote>??<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6396">Madalin</a> — Sat Feb 16, 2013 6:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SmasHinG]]></name></author>
		<updated>2013-02-16T04:31:03-04:00</updated>

		<published>2013-02-16T04:31:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101021#p101021</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101021#p101021"/>
		<title type="html"><![CDATA[Bad phrase or word]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101021#p101021"><![CDATA[
To this script maybe missing check for already exist word/phrase. Can you make this ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11766">SmasHinG</a> — Sat Feb 16, 2013 4:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2013-02-15T18:41:32-04:00</updated>

		<published>2013-02-15T18:41:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101015#p101015</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101015#p101015"/>
		<title type="html"><![CDATA[Bad phrase or word]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101015#p101015"><![CDATA[
If you want the script to work with UTF-8 you have 2 choices:<br><br>1. Recompile the eggdrop and read this <a href="http://eggwiki.org/Bugs/Utf-8" class="postlink">http://eggwiki.org/Bugs/Utf-8</a> (you have to change an setting when you compile the eggdrop)<br><br>2. Load <a href="http://forum.egghelp.org/viewtopic.php?t=18879&amp;highlight=utf8" class="postlink">http://forum.egghelp.org/viewtopic.php? ... light=utf8</a> this script before the badwords script (it should work yet i recommand recompile)<br><br>Here is the script:<br><div class="codebox"><p>Code: </p><pre><code>#### ++++ Author: MadaliN &lt;madalinmen28@yahoo.com### ++++ Script name: Badwords## ++++ Version: 1.0 (2/9/2013)## Commands#!badwords on/off#!badwords ban-reason REASON#!badwords ban-type 1/2/3/4 (!badwords ban-type 1)#!badwords add WORD/PHRASE#!badwords del WORD/PHRASE#!badwords listsetudef flag badwordsbind PUB n !badwords badwords:pubbind PUBM - * badwords:pubmproc mh {nuhost type} {set user [lindex [split $nuhost !] 0]set host [lindex [split $nuhost !] 1]switch $type {1 {return $nuhost}2 {return *!*@$host}3 {return *!*$user@$host}4 {return *!*$user@*}}}proc badwords:pubm {nick uhost hand chan arg} {global badwords tempbwif {[channel get $chan badwords]} {foreach b [array names badwords $chan,*] {if {[string match -nocase "*[lindex [split $b ,] 1]*" $arg] &amp;&amp; ![matchattr $hand n] &amp;&amp; ![isop $nick $chan]} {if {![info exists tempbw($chan,ban-type)]} { set tempbw($chan,ban-type) 2 }if {![info exists tempbw($chan,reason)]} { set tempbw($chan,reason) "Hit the door ya ;" }newchanban $chan [mh $nick!$uhost $tempbw($chan,ban-type)] $nick $tempbw($chan,reason) 0putserv "KICK $chan $nick :$tempbw($chan,reason)"}}}}proc badwords:pub {nick uhost hand chan arg} {global badwords tempbwset what [join [lrange [split $arg] 1 end]]switch -exact -- [lindex [split $arg] 0] {ban-type --ban-type {if {[lindex [split $arg] 1] == ""} { putserv "PRIVMSG $chan :\002$nick\002 - You have to specify ban-type (1/2/3/4)"; return }if {![regexp {^(1|2|3|4)$} [lindex [split $arg] 1]]} { putserv "PRIVMSG $chan :\002$nick\002 valid types are 1/2/3 or 4 (!badwords ban-type 2)"; return }set tempbw($chan,ban-type) $whatbadwords:saveputserv "PRIVMSG $chan :\002$nick\002 - 'ban-type' has been SET"}-r --reason {if {[lindex [split $arg] 1] == ""} { putserv "PRIVMSG $chan :\002$nick\002 - You have to specify ban-reason"; return }set tempbw($chan,reason) $whatbadwords:saveputserv "PRIVMSG $chan :\002$nick\002 - 'ban-reason' has been SET"}on --on {channel set $chan +badwordsputserv "PRIVMSG $chan :\002$nick\002 - Succesfully activated \00303badwords\003 script on this channel"}off --off {channel set $chan -badwordsputserv "PRIVMSG $chan :\002$nick\002 - Succesfully deactivated \00303badwords\003 script on this channel"}add --add {if {[info exists badwords($chan,$what)]} {putserv "PRIVMSG $chan :\002$nick\002 - '\00312$what\003' already exists in the database."return} else {set badwords($chan,$what) "[unixtime]"badwords:saveputserv "PRIVMSG $chan :\002$nick\002 - Succesfully added '\00312$what\003' into the database."return}}del --del {if {![info exists badwords($chan,$what)]} {putserv "PRIVMSG $chan :\002$nick\002 - '\00312$what\003' was not found in the database."return} else {unset -nocomplain badwords($chan,$what)badwords:saveputserv "PRIVMSG $chan :\002$nick\002 - Succesfully removed '\00312$what\003' from the database."return}}list --list {set temp(list) ""foreach b [array names badwords $chan,*] { lappend temp(list) [lindex [split $b ,] 1] }if {$temp(list) == ""} { putserv "PRIVMSG $chan :\002$nick\002 - Badwords database for \00303$chan\003 is \002empty\002"; return }putserv "PRIVMSG $chan :\002$nick\002 - Badwords: [join $temp(list) ", "]"}reset --reset {foreach b [array names badwords $chan,*] {unset -nocomplain badwords($chan,[lindex [split $b ,] 1])}badwords:saveputserv "PRIVMSG $chan :\002$nick\002 - Succesfully RESET badwords"}}}proc badwords:save {} {global badwords tempbwset ofile [open badwords w]puts $ofile "array set badwords [list [array get badwords]]"puts $ofile "array set tempbw [list [array get tempbw]]"close $ofile}catch {source badwords}putlog "++++ Succesfully loaded: \00312Badwords TCL Script"</code></pre></div><br>If any problems regarding the script please post here.<br>If someone tested the script please post so i know its ok.<br><br><strong class="text-strong">Every channel can have its own database</strong><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6396">Madalin</a> — Fri Feb 15, 2013 6:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SmasHinG]]></name></author>
		<updated>2013-02-15T05:38:48-04:00</updated>

		<published>2013-02-15T05:38:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101001#p101001</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101001#p101001"/>
		<title type="html"><![CDATA[Bad phrase or word]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101001#p101001"><![CDATA[
<blockquote class="uncited"><div>And finally i have the mood for this script<br><br>Commands:<br><blockquote class="uncited"><div>!badword -add word/phrase<br>!badword -del word/phrase<br>!badword -list<br>!badword ban-type 1/2/3/4/5<br>!badword -ban-reason REASON</div></blockquote>It will be compatible with UTF-8 yet for cirilic i don`t know and im still guessing if it will work with utf-8 (i will use that fix script for utf-8 because i can`t compile on my server)<br><br>So im waiting for reply if you want it like this if not i won`t do it</div></blockquote>Okay Madalin give this code who you have and Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11766">SmasHinG</a> — Fri Feb 15, 2013 5:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arkadietz]]></name></author>
		<updated>2013-02-09T08:46:57-04:00</updated>

		<published>2013-02-09T08:46:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100945#p100945</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100945#p100945"/>
		<title type="html"><![CDATA[Bad phrase or word]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100945#p100945"><![CDATA[
yeah i'm waiting for your code <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=7974">Arkadietz</a> — Sat Feb 09, 2013 8:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2013-02-09T08:22:50-04:00</updated>

		<published>2013-02-09T08:22:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100944#p100944</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100944#p100944"/>
		<title type="html"><![CDATA[Bad phrase or word]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100944#p100944"><![CDATA[
And finally i have the mood for this script<br><br>Commands:<br><blockquote class="uncited"><div>!badword -add word/phrase<br>!badword -del word/phrase<br>!badword -list<br>!badword ban-type 1/2/3/4/5<br>!badword -ban-reason REASON</div></blockquote>It will be compatible with UTF-8 yet for cirilic i don`t know and im still guessing if it will work with utf-8 (i will use that fix script for utf-8 because i can`t compile on my server)<br><br>So im waiting for reply if you want it like this if not i won`t do it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6396">Madalin</a> — Sat Feb 09, 2013 8:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Get_A_Fix]]></name></author>
		<updated>2013-02-02T15:19:10-04:00</updated>

		<published>2013-02-02T15:19:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100895#p100895</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100895#p100895"/>
		<title type="html"><![CDATA[Bad phrase or word]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100895#p100895"><![CDATA[
<blockquote class="uncited"><div>Someone please make this tcl. <br> Somebody alive ? <br> Thank You</div></blockquote>Stop bumping the thread.... If someone wants to make this, they will. Otherwise, learn to code yourself and stop bothering everyone.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6204">Get_A_Fix</a> — Sat Feb 02, 2013 3:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SmasHinG]]></name></author>
		<updated>2013-02-02T04:34:47-04:00</updated>

		<published>2013-02-02T04:34:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100892#p100892</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100892#p100892"/>
		<title type="html"><![CDATA[Bad phrase or word]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100892#p100892"><![CDATA[
Someone please make this tcl. <br> Somebody alive ? <br> Thank You<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11766">SmasHinG</a> — Sat Feb 02, 2013 4:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arkadietz]]></name></author>
		<updated>2013-01-22T10:43:55-04:00</updated>

		<published>2013-01-22T10:43:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100713#p100713</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100713#p100713"/>
		<title type="html"><![CDATA[Bad phrase or word]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100713#p100713"><![CDATA[
Hi, there! I need a tcl where i can add my bad words or phrases. <span style="font-size:150%;line-height:116%"><span style="color:red"><strong class="text-strong">To support UTF &amp;&amp; cp1251 (cyrlic).</strong></span></span><br><span style="color:red">To catch also words and phrases where is used /me </span><br>Also should has public and partyline commands like:<br><br><span style="font-size:150%;line-height:116%"><strong class="text-strong"><span style="color:red">TO DO:</span> </strong></span><br><strong class="text-strong">1. Public commands:</strong><br>!addbw - add some phrase or word ( where they are stored in some file like badword.txt ) <br>!rembw - remove some phrase or word<br>!showbw - show all added bad words or phrases<br><br><strong class="text-strong">2. Partyline commands</strong><br>Pretty much same like public<br>.addbw - add some phrase or word ( where they are stored in some file like badword.txt ) <br>.rembw - remove some phrase or word<br>.showbw - show all added bad words or phrases<br><br><strong class="text-strong">3. A specific flag for adding or remove bad words ( can be set only from perm owner )</strong><br><br><strong class="text-strong">4. Sets ban type: </strong><br># 1) *!*@some.domain.com <br># 2) *!*@*.domain.com <br># 3) *!*<a href="mailto:ident@some.domain.com">ident@some.domain.com</a> <br># 4) *!*ident@*.domain.com<br># 5) Nick!*@* <br><br><strong class="text-strong">5. Exempt: ( in tcl you can add nick or host eggdrop don't check exempts )<br>P.S Should don't check bots by default.</strong><br><br><strong class="text-strong">Example:</strong><br>.addbw "bad word or phrase" reason for ban<br>.addbw "wanna [censored] ya?" please die!<br><br><strong class="text-strong">6. Check for already exist words or phrases.</strong> If the words or phrase exist bot should back to you message like: <strong class="text-strong">The word or phrase already exist!</strong><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7974">Arkadietz</a> — Tue Jan 22, 2013 10:43 am</p><hr />
]]></content>
	</entry>
	</feed>
