X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fremotectl.rb;h=31d48fe397cbf22a0e059c71207a166d9da9c621;hb=51c35168127e0faed56bceb3f5103f92ed31478c;hp=d68177396fef5f8864bec3373743c3b40910c892;hpb=d95ea514d1e93e7b8691f479448e7d57bf108192;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/data/rbot/plugins/remotectl.rb b/data/rbot/plugins/remotectl.rb index d6817739..31d48fe3 100644 --- a/data/rbot/plugins/remotectl.rb +++ b/data/rbot/plugins/remotectl.rb @@ -17,9 +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.privmsg(new_m) + fake_message(s, :source => u) end end