summaryrefslogtreecommitdiff
path: root/data/rbot/plugins
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-04-08 16:09:14 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-04-08 16:09:14 +0200
commitcb371bcf26afa3d7c33434721a55eda6a957e16a (patch)
tree91a9b601921fd582049c897422afd29cb6a0f8da /data/rbot/plugins
parent0f277c32dd269937fbbe6427b416214ae70c70e2 (diff)
remotectl plugin: use fake_message()
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r--data/rbot/plugins/remotectl.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/data/rbot/plugins/remotectl.rb b/data/rbot/plugins/remotectl.rb
index 929b07b9..31d48fe3 100644
--- a/data/rbot/plugins/remotectl.rb
+++ b/data/rbot/plugins/remotectl.rb
@@ -17,10 +17,7 @@ class RemoteCtlPlugin < Plugin
s = params[:string].to_s
u = @bot.server.user("remote:#{m.source.username}")
@bot.auth.login(u, m.source.username, m.source.password)
- new_m = PrivMessage.new(@bot, @bot.server, u, @bot.myself, s)
- @bot.plugins.delegate "listen", new_m
- @bot.plugins.delegate "message", new_m
- @bot.plugins.privmsg(new_m)
+ fake_message(s, :source => u)
end
end