summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
Diffstat (limited to 'data/rbot')
-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