summaryrefslogtreecommitdiff
path: root/lib/rbot/plugins.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-03-10 12:55:33 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-03-10 12:55:33 +0000
commitb3c5f4953a0a1c5eca225ef33a58943a6c60f63a (patch)
tree83b4fab141ab031e3495abb59fcff94bb6f0b7c0 /lib/rbot/plugins.rb
parent4bbc1b813729b01c51ae5922e994325f27c5c1ed (diff)
Allow customization of the plugins load path
Diffstat (limited to 'lib/rbot/plugins.rb')
-rw-r--r--lib/rbot/plugins.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/rbot/plugins.rb b/lib/rbot/plugins.rb
index e101e627..d29d21c1 100644
--- a/lib/rbot/plugins.rb
+++ b/lib/rbot/plugins.rb
@@ -390,6 +390,11 @@ module Plugins
debug "Botmodule loading path: #{@dirs.join(', ')}"
end
+ def clear_botmodule_dirs
+ @dirs.clear
+ debug "Botmodule loading path cleared"
+ end
+
# load plugins from pre-assigned list of directories
def scan
@failed.clear