summaryrefslogtreecommitdiff
path: root/data/rbot/plugins
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-16 06:44:17 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-16 06:44:17 +0000
commit5e3643de09d3b32c68f218ce11ded2f412f6cba5 (patch)
tree23d24c744a741e20b57e368d90decb5050daca47 /data/rbot/plugins
parente858505dbad9060ce743b10269b60ec3282bf387 (diff)
twitter plugin: set update source to 'rbot'
Since September 17 Twitter.com supports us as an 'official' client, and we can use 'rbot' as the source for updates coming from rbot.
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r--data/rbot/plugins/twitter.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/data/rbot/plugins/twitter.rb b/data/rbot/plugins/twitter.rb
index 25ceb63a..ef0d05b6 100644
--- a/data/rbot/plugins/twitter.rb
+++ b/data/rbot/plugins/twitter.rb
@@ -7,6 +7,7 @@
# Author:: Giuseppe "Oblomov" Bilotta <giuseppe.bilotta@gmail.com>
#
# Copyright:: (C) 2007 Carter Parks
+# Copyright:: (C) 2007 Giuseppe Bilotta
#
# Users can setup their twitter username and password and then begin updating
# twitter whenever
@@ -110,7 +111,9 @@ class TwitterPlugin < Plugin
m.reply "your status message is longer than 140 characters, which is not optimal, but I'm going to update anyway"
end
- body = "status=#{CGI.escape(msg)}"
+ source = "source=rbot"
+ msg = "status=#{CGI.escape(msg)}"
+ body = [source,msg].join("&")
response = @bot.httputil.post(uri, body, :headers => @header)
debug response