Skip to content

Commit

Permalink
Clean up directory layout
Browse files Browse the repository at this point in the history
This moves plugins to the plugin directory and all libs
to the lib directory. Disabled plugins have been moved to
plugins/disabled
  • Loading branch information
pieter committed Jul 10, 2008
1 parent edcbc6c commit bc57f32
Show file tree
Hide file tree
Showing 19 changed files with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions cybot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@

# Some modules we need.
require 'thread'
$: << File.join(File.dirname(__FILE__), "lib")
require 'pluginbase'
require 'configspace/configspace'
require 'lib/logging'
require 'configspace'
require 'logging'
#require 'irc'

# Create a log instance
$log = Logging.new
Expand All @@ -23,7 +25,7 @@
# =====================

# Root plugins. We always need these.
RootPlugins = ['plugin', 'irc', 'user', 'test']
RootPlugins = ['plugin', 'user', 'test', 'irc']

# Provide a namespace for plugins.
module Plugins
Expand All @@ -41,7 +43,7 @@ def load_plugin(name)

# Try to load.
n = name.downcase
Plugins.module_eval { load("lib/#{n}.rb") }
Plugins.module_eval { load("plugins/#{n}.rb") }

# Find the class.
if (klass = self.class.const_get(n.capitalize))
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit bc57f32

Please sign in to comment.