Skip to content

Commit

Permalink
Merge pull request hubotio#696 from pulseenergy/master
Browse files Browse the repository at this point in the history
Add a toString to TextMessage so log messages are meaningful
technicalpickles committed May 19, 2014

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents e8f080f + 18d3888 commit a190b2b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/message.coffee
Original file line number Diff line number Diff line change
@@ -27,6 +27,12 @@ class TextMessage extends Message
# Returns a Match object or null.
match: (regex) ->
@text.match regex

# String representation of a TextMessage
#
# Returns the message text
toString: () ->
@text

# Represents an incoming user entrance notification.
#

0 comments on commit a190b2b

Please sign in to comment.