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

	<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>2005-09-16T01:30:41-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Skipper]]></name></author>
		<updated>2005-09-16T01:30:41-04:00</updated>

		<published>2005-09-16T01:30:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55775#p55775</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55775#p55775"/>
		<title type="html"><![CDATA[Blacklist]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55775#p55775"><![CDATA[
Hello, <br><br>I have figured out the error and corrected it myself.. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <br><br>Thanks for the help.<br><br>Rgds<br><br>Skipper<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6623">Skipper</a> — Fri Sep 16, 2005 1:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-09-13T14:05:49-04:00</updated>

		<published>2005-09-13T14:05:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55684#p55684</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55684#p55684"/>
		<title type="html"><![CDATA[Blacklist]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55684#p55684"><![CDATA[
then you should learn how to enable DCC - read the top sticky post in Eggdrop Help forum (and yes, this is a genuine advice)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Tue Sep 13, 2005 2:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Skipper]]></name></author>
		<updated>2005-09-13T13:19:21-04:00</updated>

		<published>2005-09-13T13:19:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55683#p55683</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55683#p55683"/>
		<title type="html"><![CDATA[Blacklist]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55683#p55683"><![CDATA[
Hello, <br><br>I know abt the eggdrops ban stuff as well. When i use this script there is some reason behind it.. Coz of the firewall probs i cant dcc the bot in my workplace.. thats the reason i have opted for this script.. <br><br><br>Genuine helpers only reply pls <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <br><br><br>Rgds<br><br>Skipper. <br><br><br>P.S: Those who want to increase their post count.. kindly poke in some other topic.. and dont be a spoilsport.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6623">Skipper</a> — Tue Sep 13, 2005 1:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-09-13T02:29:19-04:00</updated>

		<published>2005-09-13T02:29:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55676#p55676</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55676#p55676"/>
		<title type="html"><![CDATA[Blacklist]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55676#p55676"><![CDATA[
<blockquote class="uncited"><div>But theres a small bug.. which am unable to trace it out.. When i delete the blacklist.. its getting deleted.. but when i restart the bot.. the one which i deleted stays there still. How to fix it?</div></blockquote>save your data after modifying it<br><blockquote class="uncited"><div>There is something to do with the delete part of the tcl.. i wonder what i should do there. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> </div></blockquote>you should ditch that useless &amp; bloated thing and learn <strong class="text-strong">HOW TO USE EGGDROP'S BUILT-IN BAN SUPPORT</strong>, which is zillion times better than your lame stuff<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Tue Sep 13, 2005 2:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Skipper]]></name></author>
		<updated>2005-09-13T01:39:39-04:00</updated>

		<published>2005-09-13T01:39:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55675#p55675</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55675#p55675"/>
		<title type="html"><![CDATA[Blacklist]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55675#p55675"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set blacklist_file "scripts/dbase/blacklist"setudef flag blackbind MSG  m|- \$blacklist  blacklist:listbind MSG  m|- \$blackadd   blacklist:addbind MSG  m|- \$blackdel   blacklist:delbind JOIN -|- *            blacklist:joinproc blacklist:list {nickname hostname handle arguments} { global blacklist  set entrys 0  puthelp "PRIVMSG $nickname :BlackList Entrys"  puthelp "PRIVMSG $nickname :Nr. Owner           HostMask"  foreach entry [array names blacklist] {    incr entrys    set owner [lindex $blacklist($entry) 0]    while {[string length $owner] &lt; 15} {      set owner "$owner "    }    if {[string length $entrys] &lt; 2} {      set target "$entrys "    } else {      set target $entrys    }    puthelp "PRIVMSG $nickname :#$target $owner $entry"  }  puthelp "PRIVMSG $nickname :End of list."}proc blacklist:add {nickname hostname handle arguments} { global blacklist  set arguments [blacklist:clean $arguments]  set banmask [blacklist:validate:host [lindex $arguments 0]]  if {([regexp -all -- {!} $banmask] &gt; 1) || ([regexp -all -- {@} $banmask] &gt; 1)} {    puthelp "PRIVMSG $nickname :Sorry, Couldn't Add That HostMask."    return  }  set owner $handle  if {[regexp {^(\d{1,2}|[0-3][0-6][0-5])$} [lindex $arguments 1]]} {   set expire [expr ([lindex $arguments 1] * 86400) + [unixtime]]   set reason [join [lrange $arguments 2 end]]  } else {   set expire 0   set reason [join [lrange $arguments 1 end]]  }  if {[llength $reason] &gt;= 1} {    if {![info exists blacklist($banmask)]} {      set blacklist($banmask) "$owner $expire $reason"      puthelp "PRIVMSG $nickname :Done. $banmask BlackListed Successfully (Reason: $reason)."      } else {      puthelp "PRIVMSG $nickname :Sorry, Couldn't Add That HostMask."    }  } else {    puthelp "PRIVMSG $nickname :You Forgot To Type A BlackList Reason."  }}proc blacklist:del {nickname hostname handle arguments} { global blacklist  set arguments [blacklist:clean $arguments]  set banmask [lindex $arguments 0]  set success 0  if {[regexp {^#([0-9]+)$} $banmask tmp number]} {    set item 0    foreach entry [array names blacklist] {      incr item      if {$item == $number} {        unset blacklist($entry)        set success 1      }    }  } else {    if {[info exists blacklist($banmask)]} {      unset blacklist($banmask)      set success 1    }  }  if {$success == 0} {    puthelp "PRIVMSG $nickname :Couldn't Delete The Requested Ban. Use \$blacklist To View Them."  } else {    puthelp "PRIVMSG $nickname :Done."  }}proc blacklist:join {nickname hostname handle chan} { global blacklist  if {![botisop $chan]} {return}  if {[lsearch -exact [channel info $chan] +black] == -1} {return 0}  set userhost [blacklist:weirdclean "$nickname![getchanhost $nickname]"]  foreach entry [array names blacklist] {    set reason [lrange [blacklist:clean $blacklist($entry)] 2 end]    set blackhost [blacklist:weirdclean $entry]    if {[string match -nocase $blackhost $userhost]} {      putquick "MODE $chan -o+b $nickname $entry"      putquick "KICK $chan $nickname :[join $reason]"    }  }}proc blacklist:validate:host {i} {  regsub -all {\*+} $i {*} i  array set ban {    ident *    host *  }  set ban(nick) $i  if {[regexp -- {!} $i]} {    regexp -- {^(.+?)!(.*?)(@(.*))?$} $i tmp ban(nick) ban(ident) tmp ban(host)  } elseif {[regexp -- {@} $i]} {    regexp -- {^(.+!)?(.*?)(@(.*))?$} $i tmp ban(nick) ban(ident) tmp ban(host)  }  foreach item [array names ban] {    if {[string length $ban($item)] &lt; 1} {      set ban($item) *    }  }  return $ban(nick)!$ban(ident)@$ban(host)}proc blacklist:load {} { global blacklist blacklist_file  regexp {(\S+/)?} $blacklist_file tmp blacklist_dir  if {$blacklist_dir != ""} {    if {![file isdirectory $blacklist_dir]} {      file mkdir $blacklist_dir      putlog "Created directory: $blacklist_dir"    }  }  if {![file exists $blacklist_file]} {    array set blacklist {}    return  }  if {[array exists blacklist]} {    array unset blacklist  }  set file [open $blacklist_file r]  while {![eof $file]} {    gets $file line    if {[regexp -- {(\S+)\s(\S+)\s(\S+)\s(.+)} $line tmp banmask owner expire reason]} {      if {$expire &gt;= [unixtime] || ($expire == 0)} {        set blacklist($banmask) "$owner $expire $reason"      }    }  }  close $file}proc blacklist:save {} { global blacklist blacklist_file  set file "[open $blacklist_file w]"  foreach entry [array names blacklist] {    puts $file "$entry $blacklist($entry)"  }  close $file}proc blacklist:weirdclean {i} {  regsub -all -- \\\\ $i \001 i  regsub -all -- \\\[ $i \002 i  regsub -all -- \\\] $i \003 i  regsub -all -- \\\} $i \004 i  regsub -all -- \\\{ $i \005 i  return $i}proc blacklist:clean {i} {  regsub -all -- \\\\ $i \\\\\\\\ i  regsub -all -- \\\[ $i \\\\\[ i  regsub -all -- \\\] $i \\\\\] i  regsub -all -- \\\} $i \\\\\} i  regsub -all -- \\\{ $i \\\\\{ i  regsub -all -- \\\" $i \\\\\" i  return $i}blacklist:load</code></pre></div>Tcl is working perfect. <br><br>But theres a small bug.. which am unable to trace it out.. When i delete the blacklist.. its getting deleted.. but when i restart the bot.. the one which i deleted stays there still. How to fix it?<br><br>There is something to do with the delete part of the tcl.. i wonder what i should do there. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <br><br>Rgds<br><br>Skipper<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6623">Skipper</a> — Tue Sep 13, 2005 1:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyEgg]]></name></author>
		<updated>2005-08-31T03:44:58-04:00</updated>

		<published>2005-08-31T03:44:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55086#p55086</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55086#p55086"/>
		<title type="html"><![CDATA[Blacklist]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55086#p55086"><![CDATA[
make the modifications as you want<br><div class="codebox"><p>Code: </p><pre><code>if {$reason == ""} {newchanban $chan $banmask $hand " Requested by $hand" [lifetime] [options]} else {newchanban $chan $banmask $hand " $reason" [lifetime] [options]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6534">CrazyEgg</a> — Wed Aug 31, 2005 3:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Skipper]]></name></author>
		<updated>2005-08-31T02:54:48-04:00</updated>

		<published>2005-08-31T02:54:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55082#p55082</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55082#p55082"/>
		<title type="html"><![CDATA[Blacklist]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55082#p55082"><![CDATA[
Hello, <br><br>Thanks for the help ppl.. i have done the channel specific one.. but left with the reason part alone.. Just that am lazy to add the blacklist reason everytime.. so wanted to put a reason permanently in the tcl itself.. wonder how to do it.. if someone can help pls do.. else stop commenting.. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <br><br>Rgds<br><br>Skipper<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6623">Skipper</a> — Wed Aug 31, 2005 2:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-08-30T20:59:46-04:00</updated>

		<published>2005-08-30T20:59:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55072#p55072</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55072#p55072"/>
		<title type="html"><![CDATA[Blacklist]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55072#p55072"><![CDATA[
I've said that already, but I still hope Skipper will finally get a clue and will start using eggdrop in some sane way:<br><br>Skipper, you keep requesting feature scripts that simply don't make sense - either duplicating already existing eggdrop feature (eggdrop already has a built-in "blacklist", it's called banlist) or using eggdrop as a proxy for doing human op chores manually where such proxy isn't needed (your ops that you don't want added to bot's userlist should kick/ban/police a channel themselves, not using the bot); amazingly enough, you managed to find whole script that does the former (or did you write it yourself? a complete waste of time)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Tue Aug 30, 2005 8:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-08-30T18:25:37-04:00</updated>

		<published>2005-08-30T18:25:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55063#p55063</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55063#p55063"/>
		<title type="html"><![CDATA[Blacklist]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55063#p55063"><![CDATA[
<blockquote class="uncited"><div>if you want it channel specified, it aint a blacklist anymore imo</div></blockquote>Since when? A blacklist is a blacklist, channel specific or otherwise. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br>Skipper:<div class="codebox"><p>Code: </p><pre><code>newchanban &lt;channel&gt; &lt;ban&gt; &lt;creator&gt; &lt;comment&gt; [lifetime] [options]</code></pre></div>&lt;comment&gt; = your reason.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Tue Aug 30, 2005 6:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dizzle]]></name></author>
		<updated>2005-08-30T16:07:42-04:00</updated>

		<published>2005-08-30T16:07:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55060#p55060</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55060#p55060"/>
		<title type="html"><![CDATA[Blacklist]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55060#p55060"><![CDATA[
if you want it channel specified, it aint a blacklist anymore imo<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6156">Dizzle</a> — Tue Aug 30, 2005 4:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-08-30T13:24:32-04:00</updated>

		<published>2005-08-30T13:24:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55055#p55055</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55055#p55055"/>
		<title type="html"><![CDATA[Blacklist]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55055#p55055"><![CDATA[
Why not use the .+ban dcc command instead, this way you can make it channel specific.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Aug 30, 2005 1:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Skipper]]></name></author>
		<updated>2005-08-30T01:27:11-04:00</updated>

		<published>2005-08-30T01:27:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55025#p55025</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55025#p55025"/>
		<title type="html"><![CDATA[Blacklist]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55025#p55025"><![CDATA[
Hello, <br><br>Hey thanks.. it works <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> But as i said earlier the bans are getting added globally. I just want to make the bans for specific channels only.. <br>what i should alter in it now?<br><br>And How do i set the same reason for all the bans.. instead of typing reason for everytime .. can i make a perm reason to be added in the tcl itself. ?<br><br>Rgds<br><br>Skipper<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6623">Skipper</a> — Tue Aug 30, 2005 1:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-08-29T14:16:01-04:00</updated>

		<published>2005-08-29T14:16:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55003#p55003</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55003#p55003"/>
		<title type="html"><![CDATA[Blacklist]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55003#p55003"><![CDATA[
remove "channel" from var list within proc declaration when using msg instead of pub.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Mon Aug 29, 2005 2:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Skipper]]></name></author>
		<updated>2005-08-29T11:51:47-04:00</updated>

		<published>2005-08-29T11:51:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54999#p54999</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54999#p54999"/>
		<title type="html"><![CDATA[Blacklist]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54999#p54999"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set blacklist_file "scripts/dbase/blacklist"bind MSG  m|- \$blacklist  blacklist:listbind MSG  m|- \$blackadd   blacklist:addbind MSG  m|- \$blackdel   blacklist:delbind TIME -|- "0* * * * *" blacklist:sentrybind JOIN -|- *            blacklist:joinproc blacklist:list {nickname hostname handle channel arguments} { global blacklist  set entrys 0  puthelp "NOTICE $nickname :Blacklist entrys"  puthelp "NOTICE $nickname :Nr. Owner           Hostmask"  foreach entry [array names blacklist] {    incr entrys    set owner [lindex $blacklist($entry) 0]    while {[string length $owner] &lt; 15} {      set owner "$owner "    }    if {[string length $entrys] &lt; 2} {      set target "$entrys "    } else {      set target $entrys    }    puthelp "NOTICE $nickname :#$target $owner $entry"  }  puthelp "NOTICE $nickname :End of list."}proc blacklist:add {nickname hostname handle channel arguments} { global blacklist  set arguments [blacklist:clean $arguments]  set banmask [blacklist:validate:host [lindex $arguments 0]]  if {([regexp -all -- {!} $banmask] &gt; 1) || ([regexp -all -- {@} $banmask] &gt; 1)} {    puthelp "NOTICE $nickname :Sorry, couldn't add that hostmask."    return  }  set owner $handle  if {[regexp {^(\d{1,2}|[0-3][0-6][0-5])$} [lindex $arguments 1]]} {   set expire [expr ([lindex $arguments 1] * 86400) + [unixtime]]   set reason [join [lrange $arguments 2 end]]  } else {   set expire 0   set reason [join [lrange $arguments 1 end]]  }  if {[llength $reason] &gt;= 1} {    if {![info exists blacklist($banmask)]} {      set blacklist($banmask) "$owner $expire $reason"      puthelp "NOTICE $nickname :Done. $banmask blacklisted successfully (reason: $reason)."      blacklist:sentry    } else {      puthelp "NOTICE $nickname :Sorry, couldn't add that hostmask."    }  } else {    puthelp "NOTICE $nickname :You forgot to type a blacklist reason."  }}proc blacklist:del {nickname hostname handle channel arguments} { global blacklist  set arguments [blacklist:clean $arguments]  set banmask [lindex $arguments 0]  set success 0  if {[regexp {^#([0-9]+)$} $banmask tmp number]} {    set item 0    foreach entry [array names blacklist] {      incr item      if {$item == $number} {        unset blacklist($entry)        set success 1      }    }  } else {    if {[info exists blacklist($banmask)]} {      unset blacklist($banmask)      set success 1    }  }  if {$success == 0} {    puthelp "NOTICE $nickname :Couldn't delete the requested ban. Use \$blacklist to view them."  } else {    puthelp "NOTICE $nickname :Done."  }}proc blacklist:sentry {{minute "0"} {hour "0"} {day "0"} {week "0"} {year "0"}} { global blacklist  foreach channel [channels] {    if {![botisop $channel]} {continue}    foreach target [chanlist $channel] {      set userhost [blacklist:weirdclean "$target![getchanhost $target]"]      foreach entry [array names blacklist] {        set expire [lindex $blacklist($entry) 1]        if {$expire &gt;= [unixtime] || ($expire == 0)} {          set reason [lrange [blacklist:clean $blacklist($entry)] 2 end]          set blackhost [blacklist:weirdclean $entry]          if {[string match -nocase $blackhost $userhost]} {            putquick "MODE $channel -o+b $target $entry"            putquick "KICK $channel $target :[join $reason]"          }        } else {          unset blacklist($entry)        }      }    }  }  blacklist:save}proc blacklist:join {nickname hostname handle channel} { global blacklist  if {![botisop $channel]} {return}  set userhost [blacklist:weirdclean "$nickname![getchanhost $nickname]"]  foreach entry [array names blacklist] {    set reason [lrange [blacklist:clean $blacklist($entry)] 2 end]    set blackhost [blacklist:weirdclean $entry]    if {[string match -nocase $blackhost $userhost]} {      putquick "MODE $channel -o+b $nickname $entry"      putquick "KICK $channel $nickname :[join $reason]"    }  }}proc blacklist:validate:host {i} {  regsub -all {\*+} $i {*} i  array set ban {    ident *    host *  }  set ban(nick) $i  if {[regexp -- {!} $i]} {    regexp -- {^(.+?)!(.*?)(@(.*))?$} $i tmp ban(nick) ban(ident) tmp ban(host)  } elseif {[regexp -- {@} $i]} {    regexp -- {^(.+!)?(.*?)(@(.*))?$} $i tmp ban(nick) ban(ident) tmp ban(host)  }  foreach item [array names ban] {    if {[string length $ban($item)] &lt; 1} {      set ban($item) *    }  }  return $ban(nick)!$ban(ident)@$ban(host)}proc blacklist:load {} { global blacklist blacklist_file  regexp {(\S+/)?} $blacklist_file tmp blacklist_dir  if {$blacklist_dir != ""} {    if {![file isdirectory $blacklist_dir]} {      file mkdir $blacklist_dir      putlog "Created directory: $blacklist_dir"    }  }  if {![file exists $blacklist_file]} {    array set blacklist {}    return  }  if {[array exists blacklist]} {    array unset blacklist  }  set file [open $blacklist_file r]  while {![eof $file]} {    gets $file line    if {[regexp -- {(\S+)\s(\S+)\s(\S+)\s(.+)} $line tmp banmask owner expire reason]} {      if {$expire &gt;= [unixtime] || ($expire == 0)} {        set blacklist($banmask) "$owner $expire $reason"      }    }  }  close $file}proc blacklist:save {} { global blacklist blacklist_file  set file "[open $blacklist_file w]"  foreach entry [array names blacklist] {    puts $file "$entry $blacklist($entry)"  }  close $file}proc blacklist:weirdclean {i} {  regsub -all -- \\\\ $i \001 i  regsub -all -- \\\[ $i \002 i  regsub -all -- \\\] $i \003 i  regsub -all -- \\\} $i \004 i  regsub -all -- \\\{ $i \005 i  return $i}proc blacklist:clean {i} {  regsub -all -- \\\\ $i \\\\\\\\ i  regsub -all -- \\\[ $i \\\\\[ i  regsub -all -- \\\] $i \\\\\] i  regsub -all -- \\\} $i \\\\\} i  regsub -all -- \\\{ $i \\\\\{ i  regsub -all -- \\\" $i \\\\\" i  return $i}blacklist:load</code></pre></div>I tried with the MSG bind that is.. to add the blacklist entried using a query window.. but am getting an error as <br><div class="codebox"><p>Code: </p><pre><code>&lt;(Yammi&gt; [15:50] Tcl error [blacklist:add]: wrong # args: should be "blacklist:add nickname hostname handle channel arguments"</code></pre></div><br>Help me to fix this <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> Also help me how to make this script kick for specified channels only.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6623">Skipper</a> — Mon Aug 29, 2005 11:51 am</p><hr />
]]></content>
	</entry>
	</feed>
