I added
if ($2 !isalpha) { notice $nick Words on the list only contains letters. | halt }
to the below
on *:TEXT:!remword*:#: {
var %d = $read(hangman.txt, w, $$2)
if (%d !isalpha) { msg $chan Words on the list only contains letters. | halt }
if (( %d == $null )) { notice $nick That word is not in the list | halt }
write -ds $+ $$2 hangman.txt $$2
msg # The word $$2 has been removed.
}
Since it allowed \" !remword \" to actually remove \" \"