summaryrefslogtreecommitdiff
path: root/lib/rbot/core
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-02-12 23:20:00 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-02-12 23:20:00 +0000
commit46e1256d974e78436ea1842b66ba7283280a2f31 (patch)
treea35f12db733ca58a01eefae161c71672063b89d2 /lib/rbot/core
parent6c3e3cb81675402f8fa8f74b514be6e8e489f8eb (diff)
Remote Service Provider: increase security by preventing a malicious client from accessing the @bot instance variable
Diffstat (limited to 'lib/rbot/core')
-rw-r--r--lib/rbot/core/remote.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rbot/core/remote.rb b/lib/rbot/core/remote.rb
index de0ade5f..43d883dd 100644
--- a/lib/rbot/core/remote.rb
+++ b/lib/rbot/core/remote.rb
@@ -235,6 +235,8 @@ module ::Irc
m = RemoteMessage.new(@bot, client, cmd)
@bot.remote_dispatcher.handle(m)
end
+
+ private :instance_variables, :instance_variable_get, :instance_variable_set
end
# The bot also manages a single (for the moment) remote dispatcher. This method