summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/remotectl.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-03-16 15:45:21 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-03-16 15:45:21 +0000
commit8669de30cea27aee0116bb4420cbf15232c8c352 (patch)
treee98d16f33342fbd39cf0f46f66b9c1ac76093954 /data/rbot/plugins/remotectl.rb
parentb1b2e3d0366bda8b91804c0bcc6058c0dbb0832d (diff)
remotectl: ensure that source and destination of synthetical message are proper Irc classes. Use illegal '-remote.client-' nick for the remote user
Diffstat (limited to 'data/rbot/plugins/remotectl.rb')
-rw-r--r--data/rbot/plugins/remotectl.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/remotectl.rb b/data/rbot/plugins/remotectl.rb
index b5b460fe..cb7775e2 100644
--- a/data/rbot/plugins/remotectl.rb
+++ b/data/rbot/plugins/remotectl.rb
@@ -15,7 +15,7 @@ class RemoteCtlPlugin < Plugin
def remote_command(m, params)
s = params[:string].to_s
- new_m = PrivMessage.new(@bot, @bot.server, m.source, @bot.nick, s)
+ new_m = PrivMessage.new(@bot, @bot.server, @bot.server.user('-remote.client-'), @bot.myself, s)
@bot.plugins.delegate "listen", new_m
@bot.plugins.privmsg(new_m)
end