Permalink
Browse files

Basically working: handle questionable cases

  • Loading branch information...
Steven G. Harms
Steven G. Harms committed Jul 10, 2011
1 parent 501454d commit e95e2f17406fe1f2ea44c8a06d464f91bcd8b90d
Showing with 2 additions and 2 deletions.
  1. +2 −2 worddict.rb
View
@@ -8,8 +8,8 @@
helpers do
def check_word(w, p=nil)
puts p
- return "[INVALID:#{w}] It's a no-go" unless (temp=SMSWordDict.word_lookup w)
- "[VALID:#{w}] - Go For the Glory!"
+ return "[INVALID:#{w}] :-(" unless (temp=SMSWordDict.word_lookup w)
+ temp['message'] || "[VALID:#{w}] :-D"
end
end

0 comments on commit e95e2f1

Please sign in to comment.