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

	<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-01-19T11:57:54-04:00</updated>

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

		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2007-01-19T11:57:54-04:00</updated>

		<published>2007-01-19T11:57:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69732#p69732</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69732#p69732"/>
		<title type="html"><![CDATA[Add ban after 1-2 kicks?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69732#p69732"><![CDATA[
Use:<br><div class="codebox"><p>Code: </p><pre><code>set badwords(chans) "#chan1 #chan2"set badwords(excempt) "f|f"set badwords(words) {  "!find"  "@find"  "!list"  "@list"}set badwords(banon) "2"; # 1 = on first instance, 2 = on second instance etcset badwords(bantime) "2"; # in minutesset badwords(kickmsg) "Badword found!"bind pubm - {*} pub:badwordsproc pub:badwords {nick host hand chan text} {  global badwords  if {[lsearch -exact "$badwords(chans)" $chan] == -1} { return }  if {[matchattr $hand $badwords(excempt) $chan]} { return }  set bword 0  foreach word $text {    if {$word == ""} { return }    if {[lsearch -exact "$badwords(words)" $word] != -1} {      set bword 1      break    }  }  if {$bword} {    if {![info exists badwords($chan:$host)]} {         set badwords($chan:$host) "1"    } else {      incr badwords($chan:$host) 1    }    if {$badwords($chan:$host) &gt;= $badwords(banon)} {      utimer [expr {$badwords(bantime)*60}] [list unset badwords($chan:$host)]      if {[string match -nocase *phatlogic.com $host]} {        set host *!$host      } else {        set host [lindex [split $host @] 0]@*.[join [lrange [split [lindex [split $host @] 1] .] end-[expr [llength [split [lindex [split $host @] 1] .]] - 2] end] .]      }      putserv "MODE $chan +b $host"      putserv "KICK $chan $nick :$badwords(kickmsg)"      newchanban $chan $host $nick "$badwords(kickmsg)" $badwords(bantime)    } else {      putserv "KICK $chan $nick :$badwords(kickmsg)"    }  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Fri Jan 19, 2007 11:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DJmart]]></name></author>
		<updated>2007-01-19T11:47:12-04:00</updated>

		<published>2007-01-19T11:47:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69731#p69731</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69731#p69731"/>
		<title type="html"><![CDATA[Add ban after 1-2 kicks?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69731#p69731"><![CDATA[
Its working correctly with the bans but I see this in the status window when the ban is to expire:<br><div class="codebox"><p>Code: </p><pre><code>[10:45am] &lt;ExCuRSion&gt; [10:45] Tcl error in script for 'timer1286':[10:45am] &lt;ExCuRSion&gt; [10:45] can't unset "badwords(#phatlogic:DJmart@*.dyn.optonline.net)": no such element in array</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7468">DJmart</a> — Fri Jan 19, 2007 11:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2007-01-19T11:35:11-04:00</updated>

		<published>2007-01-19T11:35:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69730#p69730</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69730#p69730"/>
		<title type="html"><![CDATA[Add ban after 1-2 kicks?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69730#p69730"><![CDATA[
User:<br><br>The irc network changes the host for 'privacy' and so the only option is to ban via ident or *!ident@*.end.of.host.com<br><br><a href="mailto:Tosser@irc-C01B49CA.asfd.broadband.ntl.com">Tosser@irc-C01B49CA.asfd.broadband.ntl.com</a> -&gt; Tosser@*.asfd.broadband.ntl.com<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Fri Jan 19, 2007 11:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2007-01-19T10:46:04-04:00</updated>

		<published>2007-01-19T10:46:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69729#p69729</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69729#p69729"/>
		<title type="html"><![CDATA[Add ban after 1-2 kicks?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69729#p69729"><![CDATA[
Eggdrop doesn't invent host names. If it's banning the wrong host, the irc server must be lying to it.<br>.jump to a better network.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Jan 19, 2007 10:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2007-01-19T10:03:04-04:00</updated>

		<published>2007-01-19T10:03:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69728#p69728</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69728#p69728"/>
		<title type="html"><![CDATA[Add ban after 1-2 kicks?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69728#p69728"><![CDATA[
It will ban *!<a href="mailto:ident@host.com">ident@host.com</a> if the host has phatlogic.com in it, else it will ban *!ident@*.rest.of.host.com<br><br>EDIT: Fixed banmask to actually ban *!ident@*.rest.of.host.com<br><div class="codebox"><p>Code: </p><pre><code>set badwords(chans) "#chan1 #chan2"set badwords(excempt) "f|f"set badwords(words) {  "!find"  "@find"  "!list"  "@list"}set badwords(banon) "2"; # 1 = on first instance, 2 = on second instance etcset badwords(bantime) "2"; # in minutesset badwords(kickmsg) "Badword found!"bind pubm - {*} pub:badwordsproc pub:badwords {nick host hand chan text} {  global badwords  if {[lsearch -exact "$badwords(chans)" $chan] == -1} { return }  if {[matchattr $hand $badwords(excempt) $chan]} { return }  set bword 0  foreach word $text {    if {$word == ""} { return }    if {[lsearch -exact "$badwords(words)" $word] != -1} {      set bword 1      break    }  }  if {$bword} {    if {![info exists badwords($chan:$host)]} {         set badwords($chan:$host) "1"    } else {      incr badwords($chan:$host) 1    }    if {$badwords($chan:$host) &gt;= $badwords(banon)} {      if {[string match -nocase *phatlogic.com $host]} {        set host *!$host      } else {        set host [lindex [split $host @] 0]@*.[join [lrange [split [lindex [split $host @] 1] .] end-[expr [llength [split [lindex [split $host @] 1] .]] - 2] end] .]      }      putserv "MODE $chan +b $host"      putserv "KICK $chan $nick :$badwords(kickmsg)"      newchanban $chan $host $nick "$badwords(kickmsg)" $badwords(bantime)      utimer [expr {$badwords(bantime)*60}] [list unset badwords($chan:$host)]    } else {      putserv "KICK $chan $nick :$badwords(kickmsg)"    }  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Fri Jan 19, 2007 10:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DJmart]]></name></author>
		<updated>2007-01-18T21:03:36-04:00</updated>

		<published>2007-01-18T21:03:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69712#p69712</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69712#p69712"/>
		<title type="html"><![CDATA[Add ban after 1-2 kicks?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69712#p69712"><![CDATA[
i realized the "split" is incorrect. it says "elite" insted of "irc"<br><br>not sure how to fix that either <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7468">DJmart</a> — Thu Jan 18, 2007 9:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DJmart]]></name></author>
		<updated>2007-01-18T13:33:42-04:00</updated>

		<published>2007-01-18T13:33:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69706#p69706</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69706#p69706"/>
		<title type="html"><![CDATA[Add ban after 1-2 kicks?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69706#p69706"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>[12:32pm] * Xeon sets mode: +o ExCuRSion[12:32pm] * ExCuRSion sets mode: +b *!*@elite-FF83EB81.dyn.optonline.net[12:32pm] * You were kicked by ExCuRSion (Banned: Badword found!)[12:32pm] * Attempting to rejoin channel #phatlogic[12:32pm] * Now talking in #phatlogic</code></pre></div>Oh no!<br><br>Its still not working correctly... any idea?<br><br>Its not banning the correct host/IP<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7468">DJmart</a> — Thu Jan 18, 2007 1:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2007-01-18T12:38:10-04:00</updated>

		<published>2007-01-18T12:38:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69705#p69705</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69705#p69705"/>
		<title type="html"><![CDATA[Add ban after 1-2 kicks?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69705#p69705"><![CDATA[
After the line:<br><div class="codebox"><p>Code: </p><pre><code>if {$badwords($chan:$host) &gt;= $badwords(banon)} {</code></pre></div>Put:<br><div class="codebox"><p>Code: </p><pre><code>set host *!*@[lindex [split $host @] 1]</code></pre></div>It will then ban *!*@some.host.com<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Thu Jan 18, 2007 12:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DJmart]]></name></author>
		<updated>2007-01-18T12:04:48-04:00</updated>

		<published>2007-01-18T12:04:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69703#p69703</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69703#p69703"/>
		<title type="html"><![CDATA[Add ban after 1-2 kicks?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69703#p69703"><![CDATA[
It works, but the ban is incorrect. The user can rejoin...<div class="codebox"><p>Code: </p><pre><code>[11:03am] * ExCuRSion sets mode: +b *!DJmart@elite-FF83EB81.dyn.optonline.net</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7468">DJmart</a> — Thu Jan 18, 2007 12:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2007-01-18T11:50:56-04:00</updated>

		<published>2007-01-18T11:50:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69702#p69702</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69702#p69702"/>
		<title type="html"><![CDATA[Add ban after 1-2 kicks?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69702#p69702"><![CDATA[
That script seems rather buggy/crap in many ways, obv. made by some newbie by the looks of it.<br><br>Try this:<br><div class="codebox"><p>Code: </p><pre><code>set badwords(chans) "#chan1 #chan2"set badwords(excempt) "f|f"set badwords(words) {  "!find"  "@find"  "!list"  "@list"}set badwords(banon) "2"; # 1 = on first instance, 2 = on second instance etcset badwords(bantime) "2"; # in minutesset badwords(kickmsg) "Badword found!"bind pubm - {*} pub:badwordsproc pub:badwords {nick host hand chan text} {  global badwords  if {[lsearch -exact "$badwords(chans)" $chan] == -1} { return }  if {[matchattr $hand $badwords(excempt) $chan]} { return }  set bword 0  foreach word $text {    if {$word == ""} { return }    if {[lsearch -exact "$badwords(words)" $word] != -1} {      set bword 1      break    }  }  if {$bword} {    if {![info exists badwords($chan:$host)]} {         set badwords($chan:$host) "1"    } else {      incr badwords($chan:$host) 1    }    if {$badwords($chan:$host) &gt;= $badwords(banon)} {      putserv "MODE $chan +b $host"      putserv "KICK $chan $nick :$badwords(kickmsg)"      newchanban $chan $host $nick "$badwords(kickmsg)" $badwords(bantime)      utimer [expr {$badwords(bantime)*60}] [list unset badwords($chan:$host)]    } else {      putserv "KICK $chan $nick :$badwords(kickmsg)"    }  }}</code></pre></div>NOT TESTED!!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Thu Jan 18, 2007 11:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DJmart]]></name></author>
		<updated>2007-01-18T09:56:12-04:00</updated>

		<published>2007-01-18T09:56:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69700#p69700</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69700#p69700"/>
		<title type="html"><![CDATA[Add ban after 1-2 kicks?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69700#p69700"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>#####################################################################                                                                  ## Based on BadWord.tcl by TheGhost and/or Rajeh Alharithi          ##                                                                  ## Stripped out most of the original, for basic kick on 'bad' words ##                                                                  ##                                                                  ##                                        Cobratek                  ####################################################################### The bad word listbind pubm - "!list" badwordbind pub - "!list" badwordbind pubm - "@find" badwordbind pub - "@find" badwordbind pub - "!find" badwordbind pubm - "!find" badword## Main scriptproc badword {nick uhost hand chan rest} {  global botnick bword    if {([ matchattr $hand f ])} {      putserv "PRIVMSG $chan : $nick  &gt;:-| "        return 1} else {         putserv "KICK $chan $nick : There are NO files here, and this is not a warez server."        return 0}}putlog "!list kicker v0.1 loaded"</code></pre></div>How do I add a "ban" after either 1 or two kicks for the same offence? and Time it?<br><br>Thanks fellas.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7468">DJmart</a> — Thu Jan 18, 2007 9:56 am</p><hr />
]]></content>
	</entry>
	</feed>
