Scakk commented on a Page, Hangman v1.0  -  Sep 05, 2007

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 \" \"

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.