twitter: bugfix for invalid OAuth PIN Entry
authorNeoLobster <neolobster@snugglenets.com>
Mon, 6 Sep 2010 10:11:49 +0000 (05:11 -0500)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 7 Sep 2010 17:55:47 +0000 (19:55 +0200)
commitf1d1734cc6fc94e0fd809c2a1c678dfd35206c01
treee8d55f07027894bccf9967395b9c4c7fdcc52082
parent66ed4d5c2a9a4a018583dc5165e4f3b68d9781ba
twitter: bugfix for invalid OAuth PIN Entry

There was a bug in "twitter pin" functionality where it didn't
check to verify that the PIN entered by the user was valid. As
a result, if the user entered an invalid PIN, the bot would
not respond as to whether or not twitter account binding was
successful. I replaced it with an error message if the PIN
is invalid. I also changed the error message for someone
who tries to enter a PIN without first using "twitter
authorize" to be more clear.
data/rbot/plugins/twitter.rb