lib/lita/handlers/enhance.rb in lita-enhance-0.9.1 vs lib/lita/handlers/enhance.rb in lita-enhance-0.9.2

- old
+ new

@@ -112,11 +112,11 @@ end enhanced_message = session.enhance!(blurry_string, level) if enhanced_message != blurry_string - response.reply(mono(enhanced_message)) + response.reply(render_template('enhance', message: enhanced_message)) else response.reply(no_change(t 'enhance.nothing_to_enhance')) end end @@ -185,19 +185,9 @@ # Calls out that action resulted in no change via adapter specific messaging def no_change(message) case adapter when :hipchat "(nothingtodohere) #{message}" - else - message - end - end - - # Attempts to render the message using a monospaced font via adapter specific messaging - def mono(message) - case adapter - when :hipchat - "/quote #{message}" else message end end end