diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2012-03-22 17:44:27 +0000 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2012-03-22 17:44:27 +0000 |
commit | 887ab0cd350434b67b17c545e5975869bddd8b11 (patch) | |
tree | 084c779d9e5772994d9960a4598aaf34a4056be4 | |
parent | dc0cda333c39d8ba1ba22e5b70f0ef1a5c476eac (diff) |
Tidied destroy command.
-rw-r--r-- | lib/mauve/notifiers/xmpp.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/mauve/notifiers/xmpp.rb b/lib/mauve/notifiers/xmpp.rb index 8a78fd3..a0ad86e 100644 --- a/lib/mauve/notifiers/xmpp.rb +++ b/lib/mauve/notifiers/xmpp.rb @@ -516,13 +516,13 @@ e.g. EOF when /^destroy/ <<EOF -Destroy command: Destroys or more alerts. +Destroy command: Destroys one or more alerts. The syntax is destroy <alert list> - * The alert list is a comma separated list. +where <alert list> is a comma separated list of alert IDs. e.g. destroy 1,2,3 -- destroys alerts 1, 2, and 3. @@ -677,9 +677,9 @@ EOF end if alert.destroy! - msg << "#{alert_id}: destroyed" + msg << "#{alert.to_s} destroyed" else - msg << "#{alert_id}: destruction failed." + msg << "#{alert.to_s}: destruction failed." end end |