Change summary
lib/bill_plan_command.rb | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
Detailed changes
@@ -67,9 +67,11 @@ protected
def notify_failure
m = Blather::Stanza::Message.new
m.from = CONFIG[:notify_from]
- m.body =
+ m.xhtml =
"Failed to renew account for #{@customer.registered?.phone}. " \
- "To keep your number, please buy more credit soon."
+ "To keep your number, please " \
+ "<a href='xmpp:cheogram.com?command'>buy more credit soon</a>."
+ m.body = m.xhtml_node.text
@customer.stanza_to(m)
end