From befbfd412519833e5ed10737349c7d148ab44a76 Mon Sep 17 00:00:00 2001 From: Caius Durling Date: Sat, 16 Jun 2007 17:50:51 +0100 Subject: [PATCH] Added help for the phrases sub-commands --- plugins/phrases.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/phrases.rb b/plugins/phrases.rb index 10a12b2..e644bb0 100644 --- a/plugins/phrases.rb +++ b/plugins/phrases.rb @@ -67,6 +67,7 @@ class Phrases < PluginBase irc.reply "No phrase matched '#{phrase}'" end end + help :get, "Display a phrase for a given pattern. To set phrases use 'set'" # Set the phrase for a pattern # Usage: $set => @@ -94,12 +95,14 @@ class Phrases < PluginBase end irc.puts 'Phrase stored' end + help :set, "Set the phrase for a pattern.Usage: set => . Pattern can be a constant phrase or a /rege/x./ Response phrase can contain [variables]: me, you, $1+." def cmd_reload(irc, line) return unless authed?(irc) load irc.reply 'Phrases reloaded from disk' end + help :reload, "Reloads all phrases from disk. Make sure to save any changes you've made first." def cmd_save(irc, line) return unless authed?(irc) @@ -109,6 +112,7 @@ class Phrases < PluginBase irc.reply "Couldn't write phrases to disk" end end + help :save, "Save phrases to disk." # Load/save the phrases data # These seem to be called automatically at (un)load -- 2.11.4.GIT