What isn't working with it? Does it pop up the $input?
As for your update script, you should do this instead...
on *:sockclose:mysock: {
.timer 1 1 CheckUpdate
}
alias CheckUpdate {
if ($input(Do you want to update?,y)) {
; whatever commands to do the update
}
else {
; whatever commands if you don't want the update
}
}
* You can, of course, rename the alias and adjust the input text.