summaryrefslogtreecommitdiff
path: root/lib/rbot/plugins.rb
diff options
context:
space:
mode:
authorRaine Virta <rane@kapsi.fi>2009-02-19 16:26:34 +0200
committerRaine Virta <rane@kapsi.fi>2009-02-19 16:26:34 +0200
commit783ffa4235330029d661752b1023db635b26f2b3 (patch)
treee60c7a89e7053120b33810230401f5490a3cb697 /lib/rbot/plugins.rb
parentff452ad1bf111025f0661274ac7fb8b2f769a293 (diff)
remove whitespace
Diffstat (limited to 'lib/rbot/plugins.rb')
-rw-r--r--lib/rbot/plugins.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rbot/plugins.rb b/lib/rbot/plugins.rb
index 9d5523e4..e099e18e 100644
--- a/lib/rbot/plugins.rb
+++ b/lib/rbot/plugins.rb
@@ -198,7 +198,7 @@ module Plugins
@priority ||= 1
end
- # Returns the symbol :BotModule
+ # Returns the symbol :BotModule
def botmodule_class
:BotModule
end
@@ -318,7 +318,7 @@ module Plugins
#
# This command is now superceded by the #map() command, which should be used
# instead whenever possible.
- #
+ #
def register(cmd, opts={})
raise ArgumentError, "Second argument must be a hash!" unless opts.kind_of?(Hash)
who = @manager.who_handles?(cmd)
@@ -341,7 +341,7 @@ module Plugins
m.reply(_("incorrect usage, ask for help using '%{command}'") % {:command => "#{@bot.nick}: help #{m.plugin}"})
end
- # Define the priority of the module. During event delegation, lower
+ # Define the priority of the module. During event delegation, lower
# priority modules will be called first. Default priority is 1
def priority=(prio)
if @priority != prio
@@ -812,7 +812,7 @@ module Plugins
end
def sort_modules
- @sorted_modules = (core_modules + plugins).sort do |a, b|
+ @sorted_modules = (core_modules + plugins).sort do |a, b|
a.priority <=> b.priority
end || []