on *:TEXT:!sin*:#: {
if ($2 isalpha) {
/msg $chan Error - 1
}
elseif ($2 isalnum) {
/msg $chan Error - 2
}
else {
/msg $chan $sin($2)
}
}
!sin pie
gives me "Error - 1"
!sin p1e
gives me "Error - 2"
!sin 45
gives me "Error - 2"
$2 is "45" and does not meet the requirments for (letters AND numbers), why does it return true?
I have tried ($2 !isalnum) and it works for "45" but does not catch "p1e"