How can I automaticly add users when they join a channel where my bot is on. (with their host and some basic flags that expire when they do not actively join channels that the bot is on for ,
I found a small add script, but still I have the problem of the expiration. I really looked hard but all "expire" related tcl's seem to be about ban expires, and not user expires..
I'd like to find a script that tells the bot that it has to delete the user if it doesnt join for x days (to keep the userlist from groing out of control)
the add script I have now is
Code: Select all
bind join - * autoadd_join
#
proc autoadd_join {nick host hand chan} {
if {$hand == "*"} {
if {[validuser $nick] == 1} {
putlog "Adding host to $nick.."
setuser $nick HOSTS [maskhost $host]
return 1
} {
putlog "Adding new user $nick.."
adduser $nick [maskhost $host]
return 2
}
}
return 0
}