diff options
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r-- | data/rbot/plugins/twitter.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/data/rbot/plugins/twitter.rb b/data/rbot/plugins/twitter.rb index d1c6bd69..f04ca673 100644 --- a/data/rbot/plugins/twitter.rb +++ b/data/rbot/plugins/twitter.rb @@ -12,6 +12,7 @@ # twitter whenever require 'rexml/rexml' +require 'cgi' class TwitterPlugin < Plugin def initialize @@ -86,7 +87,7 @@ class TwitterPlugin < Plugin uri = "http://#{URI.escape(@registry[m.sourcenick + "_username"])}:#{URI.escape(@registry[m.sourcenick + "_password"])}@twitter.com/statuses/update.xml" - response = @bot.httputil.post(uri, "status=#{URI.escape(params[:status].to_s)}") + response = @bot.httputil.post(uri, "status=#{CGI.escape(params[:status].to_s)}") debug response if response.class == Net::HTTPOK |