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

	<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-09-12T16:38:10-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-09-12T16:38:10-04:00</updated>

		<published>2007-09-12T16:38:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75897#p75897</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75897#p75897"/>
		<title type="html"><![CDATA[Warn/kick/ban Script!!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75897#p75897"><![CDATA[
I don't see anything wrong with the code, I could be wrong. You figure it out.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Sep 12, 2007 4:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[i.m.offline]]></name></author>
		<updated>2007-09-11T04:04:22-04:00</updated>

		<published>2007-09-11T04:04:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75858#p75858</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75858#p75858"/>
		<title type="html"><![CDATA[Warn/kick/ban Script!!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75858#p75858"><![CDATA[
<blockquote class="uncited"><div>*yaar* matches "yaar" anywhere in the line even if it's part of another word. As for sending warning to the channel, replace "notice $nick" with "privmsg $chan"</div></blockquote>Thanks again mate.<br><br>I tried all the possible mask, like *yaar*, * yaar *, yaar, "yaar" etc but none of em reacting if the word is said yaar in some line and when I use * yaar * its warning/kicking on anything said in main :/<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7438">i.m.offline</a> — Tue Sep 11, 2007 4:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-09-09T06:37:53-04:00</updated>

		<published>2007-09-09T06:37:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75806#p75806</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75806#p75806"/>
		<title type="html"><![CDATA[Warn/kick/ban Script!!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75806#p75806"><![CDATA[
*yaar* matches "yaar" anywhere in the line even if it's part of another word. As for sending warning to the channel, replace "notice $nick" with "privmsg $chan"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Sep 09, 2007 6:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[i.m.offline]]></name></author>
		<updated>2007-09-09T01:49:55-04:00</updated>

		<published>2007-09-09T01:49:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75801#p75801</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75801#p75801"/>
		<title type="html"><![CDATA[Warn/kick/ban Script!!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75801#p75801"><![CDATA[
<blockquote class="uncited"><div>Yes, you understand right.</div></blockquote>Thanks for the response mate.<br><br>It seems I m messing up somewhere wid setting up words. I tried to put like "*yaar*", "* yaar *" &amp; "yaar" isolated but it don't warn/kick/ban if the word is said in whole line. its responding only when it is said just the word in a line. <br><br>Would be great if the bot warns in channel main like - user - you have said a bad word.... etc.<br><br>Thanks a lot for the help in advance <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=7438">i.m.offline</a> — Sun Sep 09, 2007 1:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-09-08T03:52:05-04:00</updated>

		<published>2007-09-08T03:52:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75786#p75786</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75786#p75786"/>
		<title type="html"><![CDATA[Warn/kick/ban Script!!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75786#p75786"><![CDATA[
Yes, you understand right.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Sep 08, 2007 3:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[i.m.offline]]></name></author>
		<updated>2007-09-06T01:15:42-04:00</updated>

		<published>2007-09-06T01:15:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75750#p75750</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75750#p75750"/>
		<title type="html"><![CDATA[Warn/kick/ban Script!!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75750#p75750"><![CDATA[
<blockquote class="uncited"><div>This should do it:<div class="codebox"><p>Code: </p><pre><code>set wkb(words) { *word1* "word2 *" "* words"}set wkb(time) 60 ; # time in secondsset wkb(warn) "you've said a bad word...etc"set wkb(kick) "you've said a bad word...etc"bind pubm - * warnkickbanproc warnkickban {nick uhost hand chan arg} { global wkb set match 0 foreach word $wkb(words) {  if {[string match -nocase $word $arg]} {   set match 1   break  } } if {$match} {  set o [throttled $nick:$uhost $wkb(time)]  if {$o == 1} {   puthelp "notice $nick :$wkb(warn)"  } {   putserv "kick $chan $nick :$wkb(kick)"   if {$o &gt; 2} {    putserv "mode $chan +b *!*@[lindex [split $uhost @] 1]"   }  } }}# user's throttled procedure with slight modificationproc throttled {id time} { global throttled if {[info exists throttled($id)]} {  incr throttled($id) } {  set throttled($id) 1  utimer $time [list unset throttled($id)] } return $throttled($id)}</code></pre></div>It feels like it's been years since I last wrote something in Tcl <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"></div></blockquote>Thanks a lot bro for the help. I will give it a try.<br>Just one confusion - it will reset the offence in 60 sec? which means if the user says the bad word after 60 sec, it will again start from 1st level?<br>Please correct me if am wrong.<br><br>And if I understand it right then I will increase the time <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> thanks once again.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7438">i.m.offline</a> — Thu Sep 06, 2007 1:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-09-05T11:51:06-04:00</updated>

		<published>2007-09-05T11:51:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75730#p75730</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75730#p75730"/>
		<title type="html"><![CDATA[Warn/kick/ban Script!!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75730#p75730"><![CDATA[
This should do it:<div class="codebox"><p>Code: </p><pre><code>set wkb(words) { *word1* "word2 *" "* words"}set wkb(time) 60 ; # time in secondsset wkb(warn) "you've said a bad word...etc"set wkb(kick) "you've said a bad word...etc"bind pubm - * warnkickbanproc warnkickban {nick uhost hand chan arg} { global wkb set match 0 foreach word $wkb(words) {  if {[string match -nocase $word $arg]} {   set match 1   break  } } if {$match} {  set o [throttled $nick:$uhost $wkb(time)]  if {$o == 1} {   puthelp "notice $nick :$wkb(warn)"  } {   putserv "kick $chan $nick :$wkb(kick)"   if {$o &gt; 2} {    putserv "mode $chan +b *!*@[lindex [split $uhost @] 1]"   }  } }}# user's throttled procedure with slight modificationproc throttled {id time} { global throttled if {[info exists throttled($id)]} {  incr throttled($id) } {  set throttled($id) 1  utimer $time [list unset throttled($id)] } return $throttled($id)}</code></pre></div>It feels like it's been years since I last wrote something in Tcl <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Sep 05, 2007 11:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[i.m.offline]]></name></author>
		<updated>2007-09-05T05:10:12-04:00</updated>

		<published>2007-09-05T05:10:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75723#p75723</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75723#p75723"/>
		<title type="html"><![CDATA[Warn/kick/ban Script!!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75723#p75723"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div><blockquote class="uncited"><div>Its easy enough:<br><br>Once a swear word is detected from a user, add that nick into an array and say set a value of 1 and warn that user. If that user says another swear word, check the array for that user, if found you check the value of the array, if say 1, means you warned him already, so increment the value to 2 and kick him. If he says another swear word, check the array again for the nick if found, check the value again, if it is 2, then you kick and ban that user.</div></blockquote>Thanks for the advice and guideline Awyeah. M complete noob on tcl so I requested if any1 came across such code <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_neutral.gif" width="15" height="15" alt=":|" title="Neutral"></div></blockquote>Sorry, I wouldn't have any time to code something like this for you, since I am quite busy with alot of work currently. You can however, request it in the <em class="text-italics">scripts request section</em> and hope someone helps you with it.</div></blockquote>Thanks a lot for sparing sometime and giving good guideline for that <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> really appreciated.<br><br>Ya it is already in script request section, seeking help :s wish me luck <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> haha<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7438">i.m.offline</a> — Wed Sep 05, 2007 5:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-09-05T04:55:57-04:00</updated>

		<published>2007-09-05T04:55:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75722#p75722</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75722#p75722"/>
		<title type="html"><![CDATA[Warn/kick/ban Script!!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75722#p75722"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>Its easy enough:<br><br>Once a swear word is detected from a user, add that nick into an array and say set a value of 1 and warn that user. If that user says another swear word, check the array for that user, if found you check the value of the array, if say 1, means you warned him already, so increment the value to 2 and kick him. If he says another swear word, check the array again for the nick if found, check the value again, if it is 2, then you kick and ban that user.</div></blockquote>Thanks for the advice and guideline Awyeah. M complete noob on tcl so I requested if any1 came across such code <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_neutral.gif" width="15" height="15" alt=":|" title="Neutral"></div></blockquote>Sorry, I wouldn't have any time to code something like this for you, since I am quite busy with alot of work currently. You can however, request it in the <em class="text-italics">scripts request section</em> and hope someone helps you with it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Sep 05, 2007 4:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[i.m.offline]]></name></author>
		<updated>2007-09-05T04:51:22-04:00</updated>

		<published>2007-09-05T04:51:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75721#p75721</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75721#p75721"/>
		<title type="html"><![CDATA[Warn/kick/ban Script!!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75721#p75721"><![CDATA[
<blockquote class="uncited"><div>Its easy enough:<br><br>Once a swear word is detected from a user, add that nick into an array and say set a value of 1 and warn that user. If that user says another swear word, check the array for that user, if found you check the value of the array, if say 1, means you warned him already, so increment the value to 2 and kick him. If he says another swear word, check the array again for the nick if found, check the value again, if it is 2, then you kick and ban that user.</div></blockquote>Thanks for the advice and guideline Awyeah. M complete noob on tcl so I requested if any1 came across such code <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_neutral.gif" width="15" height="15" alt=":|" title="Neutral"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7438">i.m.offline</a> — Wed Sep 05, 2007 4:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-09-05T04:56:40-04:00</updated>

		<published>2007-09-05T04:47:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75719#p75719</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75719#p75719"/>
		<title type="html"><![CDATA[Warn/kick/ban Script!!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75719#p75719"><![CDATA[
Its easy enough:<br><br>Once a swear word is detected from a user, add that nick into an array and say set a value of 1 and warn that user. If that user says another swear word, check the array for that user, if found you check the value of the array, if say 1, means you warned him already, so increment the value to 2 and kick him. If he says another swear word, check the array again for the nick if found, check the value again, if it is 2, then you kick and ban that user. After that remove that nick from the array.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Sep 05, 2007 4:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[i.m.offline]]></name></author>
		<updated>2007-09-05T01:45:13-04:00</updated>

		<published>2007-09-05T01:45:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75716#p75716</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75716#p75716"/>
		<title type="html"><![CDATA[Re: Warn/kick/ban Script!!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75716#p75716"><![CDATA[
<blockquote class="uncited"><div>Check out MC_8's badword script, it has exempt words and alot other features. This is probably in the TCL Archive, but heres a direct link to the scripts page on his MC_8's website <a href="http://mc.purehype.net/index.tcl?info=Bad+Words" class="postlink">http://mc.purehype.net/index.tcl?info=Bad+Words</a>. Hope it helps</div></blockquote>Thanks for the reply mate, I will try that. Thanks again <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br><br>Edited:<br><br>I tried working with it but dont find any option to make it work like warn/kick/ban. Somehow it seems so huge code for swear! maybe I m wrong.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7438">i.m.offline</a> — Wed Sep 05, 2007 1:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2007-09-04T11:20:07-04:00</updated>

		<published>2007-09-04T11:20:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75696#p75696</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75696#p75696"/>
		<title type="html"><![CDATA[Re: Warn/kick/ban Script!!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75696#p75696"><![CDATA[
Check out MC_8's badword script, it has exempt words and alot other features. This is probably in the TCL Archive, but heres a direct link to the scripts page on his MC_8's website <a href="http://mc.purehype.net/index.tcl?info=Bad+Words" class="postlink">http://mc.purehype.net/index.tcl?info=Bad+Words</a>. Hope it helps<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Tue Sep 04, 2007 11:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[i.m.offline]]></name></author>
		<updated>2007-09-04T09:14:55-04:00</updated>

		<published>2007-09-04T09:14:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75691#p75691</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75691#p75691"/>
		<title type="html"><![CDATA[Warn/kick/ban Script!!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75691#p75691"><![CDATA[
Thanks again for taking your precious time to reply<br>I couldn't find any similar post than myself posted earlier here ---&gt; <a href="http://forum.egghelp.org/viewtopic.php?t=12595&amp;highlight=warn+kick" class="postlink">http://forum.egghelp.org/viewtopic.php? ... =warn+kick</a><br><br>I followed the suggestion of mavericku<br>but now I found out there is some error like, when I add word lets say "Kya"<br>so it triggers even on LuckyAngel, I tried to change string to "* kya *" but then it trigger on that.<br><br>Not sure how to get it work right or if there is something I am messing up with <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_neutral.gif" width="15" height="15" alt=":|" title="Neutral"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7438">i.m.offline</a> — Tue Sep 04, 2007 9:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-09-04T08:59:25-04:00</updated>

		<published>2007-09-04T08:59:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75689#p75689</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75689#p75689"/>
		<title type="html"><![CDATA[Warn/kick/ban Script!!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75689#p75689"><![CDATA[
There were similar requests before in this forum. Try to <a href="http://forum.egghelp.org/search.php" class="postlink">search</a> for warn/kick examples.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Sep 04, 2007 8:59 am</p><hr />
]]></content>
	</entry>
	</feed>
