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

	<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>2006-10-24T05:02:02-04:00</updated>

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

		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2006-10-24T05:02:02-04:00</updated>

		<published>2006-10-24T05:02:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67380#p67380</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67380#p67380"/>
		<title type="html"><![CDATA[Enforce Ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67380#p67380"><![CDATA[
Why do you even use that version?<br><br>This is a much cleaner version.<br><div class="codebox"><p>Code: </p><pre><code>bind mode - "* +b" enforcebansset enforce(max) "8"set enforce(kmsg) "Banned :ban: by :nick:"proc enforcebans {nick uhost hand chan mc ban} {  global enforce  if {[botisop $chan]} {      set ban [string map {"\\" "\\\\" "\[" "\\["} $ban]    set reason [string map [list ":ban:" "$ban" ":nick" "$nick"] $enforce(kmsg)]        set list [list]    foreach user [chanlist $chan] {      if {[isbotnick $user]} {        continue      } elseif {[matchattr [nick2hand $user] f|f $chan]} {        continue      } elseif {[string match -nocase $ban $user![getchanhost $user $chan]]} {        lappend list $user      }    }        if {[set llist [llength $list]] &gt; $enforce(max)} {      putserv "MODE $chan -ob $nick $ban"    } else {      for {set i 0;set temp [list];set j 0} {$i &lt;= $llist} {incr i} {        if {$j == 3 || $i == $llist} {          if {$j &gt; 0} {            putserv "KICK $chan [join $temp ,] :$reason"            set temp [list]            set j 0          }        }        lappend temp [lindex $list $i]        incr j      }    }   }}</code></pre></div>Now if you want it to use random kickmessages from a file, use the snippet I gave you in a different topic (which begs the question why you aren't using it?).<br><div class="codebox"><p>Code: </p><pre><code>proc getrandomreason {} {  set file [open "YOURFILE" r]  set data [split [read $file] \n]  close $file  return [lindex $data [rand [llength $data]]]}</code></pre></div>If you want it to use a random message for every kick, simply change $reason to [getrandomreason].<br><br>Like:<div class="codebox"><p>Code: </p><pre><code>putserv "KICK $chan [join $temp ,] :$reason"</code></pre></div>To:<br><div class="codebox"><p>Code: </p><pre><code>putserv "KICK $chan [join $temp ,] :[getrandomreason]"</code></pre></div>If you want it to use one (random) reason, simply change<br><div class="codebox"><p>Code: </p><pre><code>set reason [string map [list ":ban:" "$ban" ":nick" "$nick"] $enforce(kmsg)]</code></pre></div>To<br><div class="codebox"><p>Code: </p><pre><code>set reason [getrandomreason]</code></pre></div>Now if you still don't understand how this all works, then I suggest you give up on using eggdrops.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Tue Oct 24, 2006 5:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sdays]]></name></author>
		<updated>2006-10-24T00:34:57-04:00</updated>

		<published>2006-10-24T00:34:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67373#p67373</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67373#p67373"/>
		<title type="html"><![CDATA[.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67373#p67373"><![CDATA[
This is like something im looking for, but can someone edit it where it<br>can load from a txt file thanks <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> <br><div class="codebox"><p>Code: </p><pre><code>bind mode - "* +b" enforcebansset enforce(max) "8"set enforce(kmsg) ""proc enforcebans {nick uhost hand chan mc ban} {   global enforce    if {![botisop $chan]} { return }   set ban [string map {"\\" "\\\\" "\[" "\\["} $ban]   if {[string match -nocase $ban $::botnick]} { return }   set kickmsg "$enforce(kmsg)"   regsub -all :ban: $kickmsg $ban kickmsg   regsub -all :nick: $kickmsg $nick kickmsg   set list ""   foreach user [chanlist $chan] {      if {[matchattr [nick2hand $user] f $chan]} { continue }      if {[string match -nocase $ban $user![getchanhost $user $chan]]} {         lappend list $user      }   }   if {[string match [llength $list] 0]} { return }   if {[llength $list] &gt; $enforce(max)} {      putserv "MODE $chan -ob $nick $ban"   } else {      if {[llength $list] &lt;= "3"} {         putserv "KICK $chan [join $list ,] :$kickmsg"      } else {         set nlist ""         foreach x $list {            lappend nlist $x            if {[llength $nlist] == "3"} {               putserv "KICK $chan [join $nlist ,] :$kickmsg"               set nlist ""            }         }         if {[llength $nlist] != ""} {            putserv "KICK $chan [join $nlist ,] :$kickmsg"            set nlist ""         }      }   }}putlog "Enforcebans loaded."</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8306">sdays</a> — Tue Oct 24, 2006 12:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[i.m.offline]]></name></author>
		<updated>2006-10-02T04:08:22-04:00</updated>

		<published>2006-10-02T04:08:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66864#p66864</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66864#p66864"/>
		<title type="html"><![CDATA[Enforce Ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66864#p66864"><![CDATA[
Sorry Friends, but I haven't given try to the code you made, but just got it fixed what I had with help of some of my mate (KissMine on DALnet). Just pasting here for reference and it works all fine as I wanted. Thanks for the help <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><div class="codebox"><p>Code: </p><pre><code>bind mode - "* +b" enforcebans set enforce(max) "8" set enforce(kmsg) "Banned :ban: by :nick:" proc enforcebans {nick uhost hand chan mc ban} {   global enforce    if {![botisop $chan]} { return }   set ban [string map {"\\" "\\\\" "\[" "\\["} $ban]   if {[string match -nocase $ban $::botnick]} { return }   set kickmsg "$enforce(kmsg)"   regsub -all :ban: $kickmsg $ban kickmsg   regsub -all :nick: $kickmsg $nick kickmsg   set list ""   foreach user [chanlist $chan] {      if {[matchattr [nick2hand $user] f $chan]} { continue }      if {[string match -nocase $ban $user![getchanhost $user $chan]]} {         lappend list $user      }   }   if {[string match [llength $list] 0]} { return }   if {[llength $list] &gt; $enforce(max)} {      putserv "MODE $chan -ob $nick $ban"   } else {      if {[llength $list] &lt;= "3"} {         putserv "KICK $chan [join $list ,] :$kickmsg"      } else {         set nlist ""         foreach x $list {            lappend nlist $x            if {[llength $nlist] == "3"} {               putserv "KICK $chan [join $nlist ,] :$kickmsg"               set nlist ""            }         }         if {[llength $nlist] != ""} {            putserv "KICK $chan [join $nlist ,] :$kickmsg"            set nlist ""         }      }   }}putlog "Enforcebans loaded."</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7438">i.m.offline</a> — Mon Oct 02, 2006 4:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2006-09-29T17:28:25-04:00</updated>

		<published>2006-09-29T17:28:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66778#p66778</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66778#p66778"/>
		<title type="html"><![CDATA[Enforce Ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66778#p66778"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind mode - "* +b" enforcebansset enforce(max) "8"set enforce(kmsg) "Banned :ban: by :nick:"proc enforcebans {nick uhost hand chan mc ban} {  global enforce botname  if {[botisop $chan]} {    set ban [string map {"\\" "\\\\" "\[" "\\["} $ban]    if {[string match $ban $botname]} {      return 0    }    set reason [string map [list ":ban:" "$ban" ":nick" "$nick"] $enforce(kmsg)    set list [list]    set continue 1    foreach user [chanlist $chan] {      if {[isbotnick $user]} {        continue      } elseif {[matchattr [nick2hand $user] f|f $chan]} {        pushmode $chan -b $ban        set continue 0        break      } elseif {[string match -nocase $ban $user![getchanhost $user $chan]]} {        lappend list $user      }    }    if {$continue} {      if {[set llist [llength $list]]} {        if {$llist &gt; $enforce(max)} {          putserv "MODE $chan -ob $nick $ban"        } else {          if {$llist &lt;= 3} {            putserv "KICK $chan [join $list ,] :$reason"          } else {            for {set i 0;set temp [list];set j 0} {$i &lt;= $llist} {incr i} {              if {$j == 3 || $i == $llist} {                if {$j &gt; 0} {                  putserv "KICK $chan [join $temp ,] :$reason"                  set temp [list]                  set j 0                  if {$j == $llist} {                    break                  }                }                lappend temp [lindex $list $i]                incr j              }            }          }        }      }    }  }}</code></pre></div>Should work fine. [untested]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Fri Sep 29, 2006 5:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2006-09-29T06:50:55-04:00</updated>

		<published>2006-09-29T06:50:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66756#p66756</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66756#p66756"/>
		<title type="html"><![CDATA[Enforce Ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66756#p66756"><![CDATA[
Ok, this should be the last one now:<br><div class="codebox"><p>Code: </p><pre><code>bind mode - "* +b" enforcebansset enforce(max) "8"set enforce(kmsg) "Banned :ban: by :nick:"proc enforcebans {nick uhost hand chan mc ban} {  global enforce botname  if {![botisop $chan]} { return }  set ban [string map {"\\" "\\\\" "\[" "\\["} $ban]  if {[string match -nocase $ban $botname]} { return }  set kickmsg "$enforce(kmsg)"  regsub -all :ban: $kickmsg $ban kickmsg  regsub -all :nick: $kickmsg $nick kickmsg  set list ""  set continue "1"  foreach user [chanlist $chan] {    if {![string match -nocase $nick $user] &amp;&amp; [matchattr [nick2hand $user] f|f $chan] &amp;&amp; ![isbotnick $user]} {      putserv "MODE $chan -b $ban"      putserv "NOTICE $nick :Ban removed with the reason: Matched a botusers hostmask."      set continue "0"      break    } elseif {[string match -nocase $ban $user![getchanhost $user $chan]]} {      lappend list $user    }  }  if {$continue} {    if {[llength $list] == "0"} { return }    if {[llength $list] &gt; $enforce(max)} {      putserv "MODE $chan -ob $nick $ban"      putserv "NOTICE $nick :Ban removed with the reason: Exceeded the max of $enforce(max) bans."    } else {      if {[llength $list] &lt;= "3"} {        putserv "KICK $chan [join $list ,] :$kickmsg"      } else {        set nlist ""        foreach x $list {          lappend nlist $x          if {[llength $nlist] == "3"} {            putserv "KICK $chan [join $nlist ,] :$kickmsg"            set nlist ""          }        }        if {[llength $nlist] != ""} {          putserv "KICK $chan [join $nlist ,] :$kickmsg"          set nlist ""        }      }    }  }}putlog "Enforcebans loaded."</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Fri Sep 29, 2006 6:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[i.m.offline]]></name></author>
		<updated>2006-09-28T13:32:35-04:00</updated>

		<published>2006-09-28T13:32:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66720#p66720</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66720#p66720"/>
		<title type="html"><![CDATA[Enforce Ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66720#p66720"><![CDATA[
now its releasing all the bans set by anyone <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7438">i.m.offline</a> — Thu Sep 28, 2006 1:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2006-09-28T09:01:40-04:00</updated>

		<published>2006-09-28T09:01:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66716#p66716</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66716#p66716"/>
		<title type="html"><![CDATA[Enforce Ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66716#p66716"><![CDATA[
This code should work:<br><div class="codebox"><p>Code: </p><pre><code>bind mode - "* +b" enforcebansset enforce(max) "8"set enforce(kmsg) "Banned :ban: by :nick:"proc enforcebans {nick uhost hand chan mc ban} {  global enforce botname  if {![botisop $chan]} { return }  set ban [string map {"\\" "\\\\" "\[" "\\["} $ban]  if {[string match -nocase $ban $botname]} { return }  set kickmsg "$enforce(kmsg)"  regsub -all :ban: $kickmsg $ban kickmsg  regsub -all :nick: $kickmsg $nick kickmsg  set list ""  set continue "1"  foreach user [chanlist $chan] {    if {[matchattr [nick2hand $user] f|f $chan]} {      putserv "MODE $chan -b $ban"      putserv "NOTICE $nick :Ban removed with the reason: Matched a botusers hostmask."      set continue "0"      break    } elseif {[string match -nocase $ban $user![getchanhost $user $chan]]} {      lappend list $user    }  }  if {$continue} {    if {[llength $list] == "0"} { return }    if {[llength $list] &gt; $enforce(max)} {      putserv "MODE $chan -ob $nick $ban"      putserv "NOTICE $nick :Ban removed with the reason: Exceeded the max of $enforce(max) bans."    } else {      if {[llength $list] &lt;= "3"} {        putserv "KICK $chan [join $list ,] :$kickmsg"      } else {        set nlist ""        foreach x $list {          lappend nlist $x          if {[llength $nlist] == "3"} {            putserv "KICK $chan [join $nlist ,] :$kickmsg"            set nlist ""          }        }        if {[llength $nlist] != ""} {          putserv "KICK $chan [join $nlist ,] :$kickmsg"          set nlist ""        }      }    }  }}putlog "Enforcebans loaded."</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Thu Sep 28, 2006 9:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[i.m.offline]]></name></author>
		<updated>2006-09-28T08:05:33-04:00</updated>

		<published>2006-09-28T08:05:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66715#p66715</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66715#p66715"/>
		<title type="html"><![CDATA[Enforce Ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66715#p66715"><![CDATA[
bot quit with error<br><div class="codebox"><p>Code: </p><pre><code>[08:04] missing close-brace    while executing"proc enforcebans {nick uhost hand chan mc ban} {  global enforce botname  if {![botisop $chan]} { return }  set ban [string map {"\\" "\\\\" "\[" "..."    (file "scripts/enforcebans.tcl" line 6)</code></pre></div>:/ thx for trying mate n sparing time for me<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7438">i.m.offline</a> — Thu Sep 28, 2006 8:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2006-09-28T06:11:17-04:00</updated>

		<published>2006-09-28T06:11:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66712#p66712</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66712#p66712"/>
		<title type="html"><![CDATA[Enforce Ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66712#p66712"><![CDATA[
Try This:<br><div class="codebox"><p>Code: </p><pre><code>bind mode - "* +b" enforcebansset enforce(max) "8"set enforce(kmsg) "Banned :ban: by :nick:"proc enforcebans {nick uhost hand chan mc ban} {  global enforce botname  if {![botisop $chan]} { return }  set ban [string map {"\\" "\\\\" "\[" "\\["} $ban]  if {[string match -nocase $ban $botname]} { return }  set kickmsg "$enforce(kmsg)"  regsub -all :ban: $kickmsg $ban kickmsg  regsub -all :nick: $kickmsg $nick kickmsg  set list ""  set continue "1"  foreach user [chanlist $chan] {    if {[matchattr [nick2hand $user] f|f $chan]} {      putserv "MODE $chan -b $ban"      putserv "NOTICE $nick :Ban removed with the reason: Matched a botusers hostmask."      set continue "0"      break    if {[string match -nocase $ban $user![getchanhost $user $chan]]} {      lappend list $user    }  }  if {$continue} {    if {[llength $list] == "0"} { return }    if {[llength $list] &gt; $enforce(max)} {      putserv "MODE $chan -ob $nick $ban"      putserv "NOTICE $nick :Ban removed with the reason: Exceeded the max of $enforce(max) bans."    } else {      if {[llength $list] &lt;= "3"} {        putserv "KICK $chan [join $list ,] :$kickmsg"      } else {        set nlist ""        foreach x $list {          lappend nlist $x          if {[llength $nlist] == "3"} {            putserv "KICK $chan [join $nlist ,] :$kickmsg"            set nlist ""          }        }        if {[llength $nlist] != ""} {          putserv "KICK $chan [join $nlist ,] :$kickmsg"          set nlist ""        }      }    }  }}putlog "Enforcebans loaded."</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Thu Sep 28, 2006 6:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[i.m.offline]]></name></author>
		<updated>2006-09-28T04:31:57-04:00</updated>

		<published>2006-09-28T04:31:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66710#p66710</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66710#p66710"/>
		<title type="html"><![CDATA[Enforce Ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66710#p66710"><![CDATA[
thx for the suggestion krimson<br><br>I did give try for that earlier. Bot doesn't react at all for this code. it doesn't kick at all for whatsoever mask it is.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7438">i.m.offline</a> — Thu Sep 28, 2006 4:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[krimson]]></name></author>
		<updated>2006-09-28T03:41:14-04:00</updated>

		<published>2006-09-28T03:41:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66709#p66709</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66709#p66709"/>
		<title type="html"><![CDATA[Enforce Ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66709#p66709"><![CDATA[
you have an extra closing bracket at the end of the script.. remove that and try again<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7663">krimson</a> — Thu Sep 28, 2006 3:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[i.m.offline]]></name></author>
		<updated>2006-09-28T02:31:44-04:00</updated>

		<published>2006-09-28T02:31:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66708#p66708</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66708#p66708"/>
		<title type="html"><![CDATA[Enforce Ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66708#p66708"><![CDATA[
when I tried using this code the bot quits giving error msg<br><br>invalid command name "}"<br>while executing<br>"}"<br>(file "scripts/enforcebans.tcl" line 22)<br>invoked from within<br><br>ya it should prvent *!*@* banmask too. thx in advance.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7438">i.m.offline</a> — Thu Sep 28, 2006 2:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[honeybee]]></name></author>
		<updated>2006-09-27T19:29:32-04:00</updated>

		<published>2006-09-27T19:29:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66703#p66703</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66703#p66703"/>
		<title type="html"><![CDATA[Enforce Ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66703#p66703"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind mode - "* +b" enforcebans set enforce(max) "8" proc enforcebans {nick uhost hand chan mc ban} {   global enforce botname   if {![botisop $chan]} { return }   set ban [string map {"\\" "\\\\" "\[" "\\["} $ban]   if {[string match -nocase $ban $botname]} { return }   set list ""   foreach user [chanlist $chan] {     if {[matchattr [nick2hand $user] f|f $chan]} { return }     if {[string match -nocase $ban $user![getchanhost $user $chan]]} {       lappend list $user     }   }   if {[llength $list] == "0"} { return }   if {[llength $list] &gt; $enforce(max)} {     putserv "MODE $chan -ob $nick $ban"     }  } } putlog "Enforcebans loaded."</code></pre></div>So this can only be used to check if a banned host is banning more than 8 users and what if i also wana check if its banning *!*@* so i can do it more quick, thanks if this code can be more better.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7174">honeybee</a> — Wed Sep 27, 2006 7:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[i.m.offline]]></name></author>
		<updated>2006-09-27T08:59:31-04:00</updated>

		<published>2006-09-27T08:59:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66697#p66697</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66697#p66697"/>
		<title type="html"><![CDATA[Enforce Ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66697#p66697"><![CDATA[
i have tried making few changes but still couldn't make it work. please help :/ thx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7438">i.m.offline</a> — Wed Sep 27, 2006 8:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[i.m.offline]]></name></author>
		<updated>2006-09-23T11:09:26-04:00</updated>

		<published>2006-09-23T11:09:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66601#p66601</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66601#p66601"/>
		<title type="html"><![CDATA[Enforce Ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66601#p66601"><![CDATA[
thanks for the help mate, but for some od reason, it doesn't kick at all nor it removes ban mask from flagged users :s despite of user being flagged or not.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7438">i.m.offline</a> — Sat Sep 23, 2006 11:09 am</p><hr />
]]></content>
	</entry>
	</feed>
