summaryrefslogtreecommitdiff
path: root/lib/rbot/core/wordlist_ui.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbot/core/wordlist_ui.rb')
-rw-r--r--lib/rbot/core/wordlist_ui.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/rbot/core/wordlist_ui.rb b/lib/rbot/core/wordlist_ui.rb
index 20ccc228..8042089a 100644
--- a/lib/rbot/core/wordlist_ui.rb
+++ b/lib/rbot/core/wordlist_ui.rb
@@ -11,12 +11,14 @@ class WordlistModule < CoreBotModule
end
def do_list(m, p)
- found = Wordlist.list(p)
+ found = Wordlist.list(@bot, p)
if found.empty?
- m.reply _("no wordlist found")
+ m.reply _("no wordlists found in %{path}") % {
+ path: @bot.path('wordlists')
+ }
else
m.reply _("Wordlists: %{found}") % {
- :found => found.sort.join(', ')
+ found: found.sort.join(', ')
}
end
end