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

	<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-09-06T08:52:41-04:00</updated>

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

		<entry>
		<author><name><![CDATA[sys]]></name></author>
		<updated>2002-09-06T08:52:41-04:00</updated>

		<published>2002-09-06T08:52:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10569#p10569</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10569#p10569"/>
		<title type="html"><![CDATA[Badnick script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10569#p10569"><![CDATA[
Thank you Mapherick  <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=21">sys</a> — Fri Sep 06, 2002 8:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-09-04T18:50:45-04:00</updated>

		<published>2002-09-04T18:50:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10476#p10476</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10476#p10476"/>
		<title type="html"><![CDATA[Badnick script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10476#p10476"><![CDATA[
a solution would be:<br><div class="codebox"><p>Code: </p><pre><code>## Badnick scans set bnick_nicks {"badnick"}## channels to watchset bnick_chans {"#badchan"}## ban time in minutes (0 == perm)  set bnick_time 60bind nick - * bnick_nickbind join - * bnick_joinproc bnick_nick {nick uhost hand chan newnick} {  global bnick_chans  foreach ch $bnick_chans {    if {[onchan $newnick $ch]} {      bnick_check $newnick $uhost $hand $chan      return 1    }  }  return 0}proc bnick_join {nick uhost hand chan} {  global bnick_chans  foreach ch $bnick_chans {    if {[onchan $nick $ch]} {      bnick_check $nick $uhost $hand $chan      return 1    }  }  return 0}proc bnick_check {nick uhost hand chan} {  global bnick_nicks botnick bnick_time  if {([matchattr $hand b]) || ($nick == $botnick)} {return 0}  foreach badnick $bnick_nicks {    if {[string match "*[string tolower $badnick]*" [string tolower $nick]]} {      set banmask "*!*[string range $uhost [string first "@" $uhost] end]"      newchanban $chan $uhost $botnick "Please do not use $badnick on this channel" $bnick_time none      return 0    }  }}</code></pre></div>BTW: Perm banning [badnick]!*@* works as well ofcourse <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by Guest — Wed Sep 04, 2002 6:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sys]]></name></author>
		<updated>2002-09-01T07:05:22-04:00</updated>

		<published>2002-09-01T07:05:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10280#p10280</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10280#p10280"/>
		<title type="html"><![CDATA[Badnick script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10280#p10280"><![CDATA[
I need help in this small script please.<br>This tcl script kick/ban a certain nick on changed. I want the script also to kick/ban a same nick on join with ban time, and on specific channels.<br>such as:<br>set bandnickchan "#chan1 #chan2"<br><br>Thank you.<br><br>## code ##<br><br>## Badnick scans<br>set badnicks {<br> "[censored]" <br> "bitch" <br> "asshole" <br>}<br><br>bind nick - * Detected_changebad<br><br>proc Detected_changebad {nick uhost hand chan newnick} {<br> global badnicks botnick <br>if {(![matchattr $hand b]) &amp;&amp; ($nick != $botnick)} {<br>  foreach badchange [string tolower $badnicks] {<br>   if {[string match *$badchange* [string tolower $newnick]]} {<br>    set banmask "*!*[string range $uhost [string first "@" $uhost] end]" <br>    putserv "MODE $chan +b $banmask"<br>    putserv "KICK $chan $newnick :Please do not use Badnick on this channel"<br>    return 0<br>    }  <br>  }<br> }<br>}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=21">sys</a> — Sun Sep 01, 2002 7:05 am</p><hr />
]]></content>
	</entry>
	</feed>
