summaryrefslogtreecommitdiff
path: root/lib/rbot/plugins.rb
diff options
context:
space:
mode:
authorTom Gilbert <tom@linuxbrit.co.uk>2005-07-27 16:49:34 +0000
committerTom Gilbert <tom@linuxbrit.co.uk>2005-07-27 16:49:34 +0000
commitaabe8920ae1e120587c8e27a62827d28afdc04e5 (patch)
treec4405c0e4aec14e62e0aeea101523261a9951535 /lib/rbot/plugins.rb
parent3923613eeb0cb91abfe3f01238aeddec07573fec (diff)
rework various modules to use the installed directories
Diffstat (limited to 'lib/rbot/plugins.rb')
-rw-r--r--lib/rbot/plugins.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/plugins.rb b/lib/rbot/plugins.rb
index 5db047fb..d239c5e6 100644
--- a/lib/rbot/plugins.rb
+++ b/lib/rbot/plugins.rb
@@ -170,7 +170,7 @@ module Irc
# load plugins from pre-assigned list of directories
def scan
dirs = Array.new
- dirs << File.dirname(__FILE__) + "/plugins"
+ dirs << @bot.datadir + "/plugins"
dirs += @dirs
dirs.each {|dir|
if(FileTest.directory?(dir))