lib/lita/message.rb in lita-1.0.0 vs lib/lita/message.rb in lita-1.1.0
- old
+ new
@@ -11,10 +11,10 @@
def initialize(robot, body, source)
@robot = robot
@body = body
@source = source
- @command = !!@body.sub!(/^\s*@?#{@robot.name}[:,]?\s*/, "")
+ @command = !!@body.sub!(/^\s*@?#{@robot.mention_name}[:,]?\s*/, "")
end
def args
begin
command, *args = message.shellsplit