From 8669de30cea27aee0116bb4420cbf15232c8c352 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Fri, 16 Mar 2007 15:45:21 +0000 Subject: remotectl: ensure that source and destination of synthetical message are proper Irc classes. Use illegal '-remote.client-' nick for the remote user --- data/rbot/plugins/remotectl.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/rbot/plugins/remotectl.rb') 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 -- cgit v1.2.3