diff options
author | Dmitry Kim <dmitry point kim at gmail point com> | 2007-03-21 15:28:05 +0000 |
---|---|---|
committer | Dmitry Kim <dmitry point kim at gmail point com> | 2007-03-21 15:28:05 +0000 |
commit | c2ea6c770639296c4e68238f52d028874d0513c7 (patch) | |
tree | adbba76556485299537d4553d9b5e86497412a8f /data/rbot/plugins | |
parent | a56bc5559ce4bc4fc03f5de686aecbab934be054 (diff) |
* apparently, synthetic privmsgs for remotectl are hard. may need some massive rework later.
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r-- | data/rbot/plugins/remotectl.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/data/rbot/plugins/remotectl.rb b/data/rbot/plugins/remotectl.rb index cb7775e2..54044380 100644 --- a/data/rbot/plugins/remotectl.rb +++ b/data/rbot/plugins/remotectl.rb @@ -15,7 +15,9 @@ class RemoteCtlPlugin < Plugin def remote_command(m, params) s = params[:string].to_s - new_m = PrivMessage.new(@bot, @bot.server, @bot.server.user('-remote.client-'), @bot.myself, 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) end |