This was written for a request in the forums.
It simply sends a pm every 5 minutes to a user with a nick that starts with guest, until they leave the channel, or until they change their nick to one that doesn't start with guest.
on *:NICK: { nick_check $nick $newnick }
on *:PART:#: { nick_check $nick }
on *:QUIT: { nick_check $nick }
on *:KICK:#: { nick_check $knick }
alias -l nick_check {
if $timer($1) {
$+(.timer,$1) off
set %g $remtok(%g,$1,1,32)
}
if $2 && (guest* iswm $2) {
$+(.timer,$v2) 0 300 .msg $v2 welcome to #channel Please make a new nick by typing: /nick newname
set %g $addtok(%g,$2,32)
}
}
on *:JOIN:#: {
if (guest* iswm $nick) {
set %g $addtok(%g,$v2,32)
$+(.timer,$v2) 0 300 .msg $v2 welcome to #channel $&
Please make a new nick by typing: /nick newname
}
}