X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fremotectl.rb;h=31d48fe397cbf22a0e059c71207a166d9da9c621;hb=12a508e1a75bc1de501f36ca9e4767f2349fe12e;hp=5404438046afbb584e59a647f7c00ccb59d981f9;hpb=c2ea6c770639296c4e68238f52d028874d0513c7;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/data/rbot/plugins/remotectl.rb b/data/rbot/plugins/remotectl.rb index 54044380..31d48fe3 100644 --- a/data/rbot/plugins/remotectl.rb +++ b/data/rbot/plugins/remotectl.rb @@ -17,16 +17,13 @@ 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 me = RemoteCtlPlugin.new me.remote_map 'dispatch *string', - :action => 'remote_command', - :action_path => 'dispatch' + :action => 'remote_command' me.default_auth('*', false)