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

	<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>2002-08-15T06:36:45-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-15T06:36:45-04:00</updated>

		<published>2002-08-15T06:36:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9806#p9806</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9806#p9806"/>
		<title type="html"><![CDATA[it`s work perfectly]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9806#p9806"><![CDATA[
try this one  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_surprised.gif" width="15" height="15" alt=":o" title="Surprised"> <br><br><div class="codebox"><p>Code: </p><pre><code>set badword { badword1 badword2}bind pubm - * checkwordproc checkword {nick uhost handle chan text} { global badword if (![matchattr $nick +o]) {  foreach n $badword {   if ([string match $n [string tolower $text]]) {    putlog "$nick said bad word in $chan - $n"    putkick $chan $nick "bad word,please don`t use it"    return 0   }  } }}</code></pre></div><p>Statistics: Posted by Guest — Thu Aug 15, 2002 6:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-14T22:04:27-04:00</updated>

		<published>2002-08-14T22:04:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9800#p9800</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9800#p9800"/>
		<title type="html"><![CDATA[badword/swear script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9800#p9800"><![CDATA[
Thanks Papillon, it helped a lot, i have changed the setup, its working, but its not efficient, i'll appreciate if someone can look these codes and help me to make them more efficient, perfect codes...thanks<br><br>set badwordlist {<br> "test1"<br> "*test2*"<br>  .<br>  .<br>  .<br> <br> }<br>proc badword {nick uhost hand chan rest} {<br>putlog "$nick $uhost $hand $chan $rest"<br>  global channel  botnick  badwordlist <br>  foreach badword "$badwordlist" { <br>   if {[string match "$badword" $rest]} { <br>      set rest "$badword" <br>      .<br>      .<br>      .<br>    }<br>  }<br>}<br>proc ctcp_badword {nick uhost hand chan keyword rest} { <br>     badword $nick $uhost $hand $chan $rest <br>} <br>  <br>bind pubm - * badword<br>bind ctcp - ACTION ctcp_badword <br><br>i have this line -&gt; putlog "$nick $uhost $hand $chan $rest" just to see in a partyline, but now cos of this, if any user type anything, shows in the partyline..<br><br>thanks<br>regards<br>aw<p>Statistics: Posted by Guest — Wed Aug 14, 2002 10:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2002-08-13T13:23:31-04:00</updated>

		<published>2002-08-13T13:23:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9729#p9729</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9729#p9729"/>
		<title type="html"><![CDATA[badword/swear script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9729#p9729"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc ctcp_badword {nick uhost hand chan keyword rest} {   if {[string match "somebadword" $rest]} {    badword $nick $uhost $hand $chan $rest   }} </code></pre></div>or if u set up a list of bad words u could do a loop on them<div class="codebox"><p>Code: </p><pre><code>set badwordlist "word1 word2 word3......"proc ctcp_badword {nick uhost hand chan keyword rest} {  global badwordlist   foreach badword "$badwordlist" {    if {[string match "$badword" $rest]} {      set rest "$badword"      badword $nick $uhost $hand $chan $rest    }  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Tue Aug 13, 2002 1:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-12T21:24:22-04:00</updated>

		<published>2002-08-12T21:24:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9675#p9675</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9675#p9675"/>
		<title type="html"><![CDATA[badword/swear script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9675#p9675"><![CDATA[
Hi,<br><br>i'll appreciate if someone can help me with this, may be an example, i never worked with regexp stuff, or any advise for another solution plz?<br> thanks<br>regards<br>Aw<p>Statistics: Posted by Guest — Mon Aug 12, 2002 9:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-10T01:09:22-04:00</updated>

		<published>2002-08-10T01:09:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9586#p9586</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9586#p9586"/>
		<title type="html"><![CDATA[badword/swear script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9586#p9586"><![CDATA[
Thanks, but could you please give me an example, how to do this?/<br>thanks<br>regards'<br>AW<p>Statistics: Posted by Guest — Sat Aug 10, 2002 1:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-08-10T00:52:22-04:00</updated>

		<published>2002-08-10T00:52:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9585#p9585</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9585#p9585"/>
		<title type="html"><![CDATA[badword/swear script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9585#p9585"><![CDATA[
With the pubm bind, you are testing for *test1* or *test2*. But in the ctcp bind, you call badword every time there is an action.<br><br>Just add in a test to make sure the bad word is in the $rest variable. Use 'string match' or 'regexp'.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Sat Aug 10, 2002 12:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-10T00:19:51-04:00</updated>

		<published>2002-08-10T00:19:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9584#p9584</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9584#p9584"/>
		<title type="html"><![CDATA[badword/swear script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9584#p9584"><![CDATA[
Hi, i couldn't figure out this.<br>i have a badword script, which works fine, but then i wrote a ctcp/ACTION procedure, which calls this working script, but i f anyone used /me text, gets kick....don't why<br><br>bind pubm - "*test1*"   badword<br>bind pubm -  "*test2*"  badword<br><br>proc badword {nick uhost hand chan rest} {<br><br>............ its works fine<br><br>}<br><br>but when i have added this for ctcp/action<br><br>proc ctcp_badword {nick uhost hand chan keyword rest} {<br> badword $nick $uhost $hand $chan $rest <br>}<br><br>bind ctcp - ACTION ctcp_badword <br><br>its kick anyone use ACTION ..like /me hello..<br><br>any advise/suggestions please??<br>thanks<br>regards<br>aW<p>Statistics: Posted by Guest — Sat Aug 10, 2002 12:19 am</p><hr />
]]></content>
	</entry>
	</feed>
