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

	<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-01-02T20:46:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2017-01-02T20:46:36-04:00</updated>

		<published>2017-01-02T20:46:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105682#p105682</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105682#p105682"/>
		<title type="html"><![CDATA[detect Nick with length longer than 20 char  in it]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105682#p105682"><![CDATA[
loaded and tested it works really wel Spike^^ thanx again<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon Jan 02, 2017 8:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2017-01-02T19:34:22-04:00</updated>

		<published>2017-01-02T19:34:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105681#p105681</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105681#p105681"/>
		<title type="html"><![CDATA[Bad-Nick script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105681#p105681"><![CDATA[
A more complete example of the bad-nick script.<br><br>fixed an issue where nick-length bans were ignoring the bchan setting.<br>cleaned up a little.<br>added the reason setting.<br>both scan modes now set proper nick bans.<br><div class="codebox"><p>Code: </p><pre><code># 1) Ban nicks for containing any of these words. #set bnick {      "bad"      "words"      "one"      "to"      "each"      "line" } # 2) Ban nicks for being very long?? ##    0 = do not ban nicks as too long ##  10+ = ban any nick this long or longer #set blong 0# Set this to "" (= all channels)  or "#channel" or "#chan #chan2 #nother" set bchan ""# Set the reason for the kick/ban. #set kickreason "BadNick: Change your nick and re-join."## End of Settings ##bind join - * join:checkbadnick bind nick - * nick:tvrsh set bchan [split [string trim [string tolower $bchan]]]proc nick:tvrsh {nick uhost hand chan newnick} {    join:checkbadnick $newnick $uhost $hand $chan } proc join:checkbadnick {nick uhost hand chan} {  global bnick bchan kickreason blong if {($bchan ne "") &amp;&amp; ([lsearch -exact $bchan [string tolower $chan]] == -1)} {   return 0 } set bad 0 if {($blong &gt; 9) &amp;&amp; ([string length $nick] &gt;= $blong)} {  set bad 1   #putquick "MODE $chan  +b  *!*@[lindex [split $uhost @] 1]"   putquick "MODE $chan  +b  $nick!*@*" } else {   foreach i [string tolower $bnick] {     if {[string match *$i* [string tolower $nick]]} {       putquick "MODE $chan  +b  *$i*!*@*"       #putquick "MODE $chan  +b  $nick!*@*"      set bad 2  ;  break     }    }  }  if {$bad &gt; 0} {   putquick "KICK $chan $nick :$kickreason"  } } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Mon Jan 02, 2017 7:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2017-01-01T19:45:56-04:00</updated>

		<published>2017-01-01T19:45:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105678#p105678</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105678#p105678"/>
		<title type="html"><![CDATA[detect Nick with length longer than 20 char  in it]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105678#p105678"><![CDATA[
great works fine thx Spike^^<br><br>add the kickreason var tho<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun Jan 01, 2017 7:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2017-01-01T18:22:11-04:00</updated>

		<published>2017-01-01T18:22:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105677#p105677</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105677#p105677"/>
		<title type="html"><![CDATA[detect Nick with length longer than 20 char  in it]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105677#p105677"><![CDATA[
Added new unrelated function to an existing "bad-words in nick" script.<br><br>Script can now kick/ban for nicks being too long¿...<br><div class="codebox"><p>Code: </p><pre><code># NEW Nick-Too-Long setting ## 0 = do not ban nicks as too long ## 10+ = ban any nick this long or longer #set blong 0set bnick {      "bad"      "words"      "one"      "to"      "each"      "line"  } # set this to "" or "#channel" or "#chan #chan2 #nother"set bchan ""## End of Settings ##bind join - * join:checkbadnick bind nick - * nick:tvrsh set bchan [split [string trim [string tolower $bchan]]]proc nick:tvrsh {nick uhost hand chan newnick} {    join:checkbadnick $newnick $uhost $hand $chan } proc join:checkbadnick {nick uhost hand chan} {  global bnick bchan kickreason blong set bad 0 if {($blong &gt; 9) &amp;&amp; ([string length $nick] &gt;= $blong)} {  set bad 1   putquick "MODE $chan  +b  *!*@[lindex [split $uhost @] 1]" } elseif {([lsearch -exact $bchan [string tolower $chan]] != -1)  || ($bchan == "")} {   foreach i [string tolower $bnick] {     if {[string match *$i* [string tolower $nick]]} {       set badpart $i       set bad 2  ;  break     }    }    if {$bad == 2} {     putquick "MODE $chan  +b  *$badpart*!*@*"    }  }  if {$bad &gt; 0} {   putquick "KICK $chan $nick :$kickreason"  } } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sun Jan 01, 2017 6:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2017-01-01T15:27:57-04:00</updated>

		<published>2017-01-01T15:27:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105674#p105674</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105674#p105674"/>
		<title type="html"><![CDATA[detect Nick with length longer than 20 char  in it]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105674#p105674"><![CDATA[
<blockquote class="uncited"><div>Script makes no restriction as to nick length.<br><br>Your Eggdrop and/or network may:)</div></blockquote>yea perhaps i wasnt clear with the request<br><br>the question wasnt if the script restricted anything the request was to modify it to make it detect nicks longer than 20 char in it and than place ban / kick<br><br>tnx.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun Jan 01, 2017 3:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2016-12-31T16:08:30-04:00</updated>

		<published>2016-12-31T16:08:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105672#p105672</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105672#p105672"/>
		<title type="html"><![CDATA[detect Nick with length longer than 20 char  in it]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105672#p105672"><![CDATA[
Script makes no restriction as to nick length.<br><br>Your Eggdrop and/or network may:)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sat Dec 31, 2016 4:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2017-01-01T21:25:51-04:00</updated>

		<published>2016-12-31T10:04:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105671#p105671</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105671#p105671"/>
		<title type="html"><![CDATA[detect Nick with length longer than 20 char  in it]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105671#p105671"><![CDATA[
greetz how can this code be modify to detect nicks on join and nickchange longer than 20 <br><div class="codebox"><p>Code: </p><pre><code>set bnick {    "HOMO"    "h0mo"    "hom0"    "gay"    "assho"    "pussy"    "[censored]"    "cock"    "dick"    "anus"    "suck"    "[censored]"    "aars"    "tits"    "boob"    "lick"    "sex"    "anal"}set bchan ""bind join - * join:checkbadnickbind nick - * nick:tvrshproc nick:tvrsh {nick uhost hand chan newnick} {    join:checkbadnick $newnick $uhost $hand $chan}proc join:checkbadnick {nick uhost hand chan} {global bnick bchan kickreason tempif {(([lsearch -exact [string tolower $bchan] [string tolower $chan]] != -1)  || ($bchan == ""))} {  set temp 0foreach i [string tolower $bnick] {if {[string match *$i* [string tolower $nick]]} {        set badpart $iset temp 1 } }}if {!$temp} { return } {putquick "MODE $chan  +b  *$badpart*!*@*"putquick "KICK $chan $nick :$kickreason" } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sat Dec 31, 2016 10:04 am</p><hr />
]]></content>
	</entry>
	</feed>
