on *:join:#Alessandra:{
if ($network == MindForge) {
if (MindUser* iswm $nick) { return }
whois $nick
}
}
; Beginning of whois.
; Set a global variable on the nick.
raw 313:*:{
if ($network == MindForge) {
if ($2 ison #Alessandra) {
set %reg_check_ $+ $2 1
}
}
}
; User is logged in, +v them and unset the global variable.
; :Unixverse.MindForge.org 330 TestNick KindOne KindOne :is logged in as
raw 330:*:{
if ($network == MindForge) {
if ($2 ison #Alessandra) {
mode ##test +v $2
unset %reg_check_ $+ $2
}
}
}
; End of whois.
; If the nick is not registered message them and unset the global variable.
raw 318:*:{
if ($network == MindForge) {
if (($2 ison #Alessandra) && (%reg_check_ $+ $2)) {
.msg $2 Please, register/identify Your nick! Thanks
unset %reg_check_ $+ $2
}
}
}