Simple Shitlist For Bot

By Soulkeeper on Mar 25, 2008

It's just a simple blacklist using hash tables. [For a Bot]

<!---Start Note---!>
It will give you an error the first time you use this. There is most likely not a table in your mIRC directory named shitlist.tmp. This is ok. The script will make one, and save it.
<!--End Note--!>

Just set the var, %owner, to your nick, or whoever the owner is.

on *:start: hmake shitlist 100 | hload shitlist shitlist.tmp
on *:exit: hsave shitlist shitlist.tmp
on *:join:#: if ($me isop $chan) && ($botaccess($fulladdress) = Dead) { kick $chan $nick You've been SHITLISTED! | mode # +b $address($nick,5) }
on *:text:~add*:#: if ($2 = shitlist) && ($nick = %owner) { hadd shitlist $3 Dead }
on *:text:~del*:#: if ($2 = shitlist) && ($nick = %owner) { hdel shitlist $3 Dead }
alias botaccess { return $hget(shitlist, $hfind(shitlist, $1, 1, W)) }

Comments

Sign in to comment.
Gecko321   -  Mar 30, 2008

if you change your On Start to
on *:start: hmake shitlist 100 | if ($findFile($MircDir,shitlist.tmp,0)) { .hload shitlist shitlist.tmp }

it will get rid of that error

 Respond  
Soulkeeper   -  Mar 27, 2008

Lol. Forgot to take out the 2 part.

 Respond  
Andrew-|   -  Mar 27, 2008

Where is the botaccess2 alias?

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.