I made a script that checks, if a user has more than x hostmasks. If it is, i want the bot to leave that users a message like ".note <handle> <text>". I dont know how, can someone help me plz?
I read this then realized, "Hey! Good idea!" so here it is:
##set this to how many hosts to check for
set maxhosts 5
##this is the user the note is sent from
set notenick "nick"
bind dcc n hostcheck hostcheck_start
proc hostcheck_start {n u h} {
foreach user [userlist] {
if {[llength [getuser $user hosts]] > $maxhosts} {
sendnote $notenick $user "Please remove some of your hosts."
putlog "$user has too many hosts, sending note..."
}
}
}
<font size=-1>[ This Message was edited by: tainted on 2002-05-29 14:03 ]</font>
<font size=-1>[ This Message was edited by: tainted on 2002-05-29 14:05 ]</font>