diff options
Diffstat (limited to 'data/rbot/plugins/excuse.rb')
-rw-r--r-- | data/rbot/plugins/excuse.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/data/rbot/plugins/excuse.rb b/data/rbot/plugins/excuse.rb index 38e85ad6..ad0e8334 100644 --- a/data/rbot/plugins/excuse.rb +++ b/data/rbot/plugins/excuse.rb @@ -459,12 +459,12 @@ class ExcusePlugin < Plugin def help(plugin, topic="") "excuse => supply a random excuse" end - def privmsg(m) - excuse = @@excuses[rand(@@excuses.length)] - m.reply excuse + + def excuse(m, params) + m.reply @@excuses.pick_one end end plugin = ExcusePlugin.new -plugin.register("excuse") +plugin.map "excuse" |