lib/hipbot/message.rb in hipbot-1.0.3 vs lib/hipbot/message.rb in hipbot-1.0.4
- old
+ new
@@ -3,14 +3,14 @@
class Message < Struct.new(:raw_body, :room, :sender)
include Cache
attr_accessor :body
- MENTION_REGEXP = /@(\p{Word}++)/.freeze
+ MENTION_REGEXP = /@(\p{Word}++):?/.freeze
def initialize *args
super
- Hipbot.logger.info("MESSAGE from #{sender} in #{room}")
+ Hipbot.logger.info("MESSAGE from #{sender} in ##{room}")
self.raw_body = raw_body.force_encoding('UTF-8')
self.body = strip_bot_mention
end
def for? user