X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fremotectl.rb;h=31d48fe397cbf22a0e059c71207a166d9da9c621;hb=51c35168127e0faed56bceb3f5103f92ed31478c;hp=929b07b980e6ba7c7ff830f3b36b1f32eef1e313;hpb=8a3ef5e5aaf5cb8305728f3bcd407ac17fc23138;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git 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