
I'm trying to make a script that when I type !nickchange <nickname>, the bot will send a msg to the chan asking that user to change its' nickname.
If he doesn't change the nickname within a minute, the bot will set mode +b Nick!*@* and kick the user.
I've done this:
Code: Select all
bind pubm - "#cyber-world !nickchange*" nickchange
proc nickchange {nick host handle chan text} {
set user [lindex $text 1]
if { ([isop $nick $chan] == 1) || ([isvoice $nick $chan] == 1) || ([ishalfop $nick $chan] == 1) } {
puthelp "PRIVMSG $chan :\001ACTION $user: You have a minute to change your nickname by typing /nick NewNick. If you don't change it, you'll get banned. Thanks.\001"
utimer .... ?? What about now?
}
}
Thanks in advance,
Fill