summaryrefslogtreecommitdiff
path: root/data/rbot/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'data/rbot/contrib')
-rw-r--r--data/rbot/contrib/plugins/stats.rb6
-rw-r--r--data/rbot/contrib/plugins/vandale.rb2
2 files changed, 4 insertions, 4 deletions
diff --git a/data/rbot/contrib/plugins/stats.rb b/data/rbot/contrib/plugins/stats.rb
index 4cafbbe9..97f42bd3 100644
--- a/data/rbot/contrib/plugins/stats.rb
+++ b/data/rbot/contrib/plugins/stats.rb
@@ -19,10 +19,10 @@
class StatsPlugin < Plugin
- @@commands = {
+ @@commands = {
"stats" => "handle_stats",
"track" => "handle_track",
- "untrack" => "handle_untrack",
+ "untrack" => "handle_untrack",
"listtokens" => "handle_listtokens",
"rmabuser" => "handle_rmabuser"
}
@@ -61,7 +61,7 @@ class StatsPlugin < Plugin
m.reply "What a crazy fool! Did you mean |help stats?"
return
end
-
+
meth = self.method(@@commands[m.plugin])
meth.call(m)
end
diff --git a/data/rbot/contrib/plugins/vandale.rb b/data/rbot/contrib/plugins/vandale.rb
index 7b806c85..720fe762 100644
--- a/data/rbot/contrib/plugins/vandale.rb
+++ b/data/rbot/contrib/plugins/vandale.rb
@@ -16,7 +16,7 @@ class VanDalePlugin < Plugin
ret = Array.new
Utils.safe_exec("/usr/local/bin/gnuvd", m.params).each{|line| if line.length > 5 then ret << line end}
m.reply ret.delete_at(0)
- while ret[0] =~ /^[[:alpha:]_]*[0-9]/
+ while ret[0] =~ /^[[:alpha:]_]*[0-9]/
m.reply ret.delete_at(0)
end
while ret[0] =~ /^[0-9]/