Skip to content

Commit

Permalink
Fall back to email when first name isn't present in the /me command
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrove committed Apr 12, 2012
1 parent 05c0fbe commit 7a9a93c
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -3,7 +3,8 @@ class Kandan.Plugins.MeAnnounce
@regex: /^/me /

@init: ()->
Kandan.Modifiers.register @regex, (message, state)=>
Kandan.Modifiers.register @regex, (message, state) =>
actor = message.user.first_name || message.user.email
message.content = message.content.replace @regex, "#{message.user.first_name} "
return Kandan.Helpers.Activities.build_from_base_template(message)

Expand Down

0 comments on commit 7a9a93c

Please sign in to comment.