lazerwalker / hubot-imessage

iMessage adapter for Hubot
MIT License
172 stars 31 forks source link

Fix argument escaping in Messages event handler #5

Closed rgov closed 10 years ago

rgov commented 10 years ago

If a message is received from a user with no first name, AppleScript will set the name to "missing value", and the space will split this into two arguments passed to the messageReceived.coffee script.

The patch quotes all command line arguments, and specifically handles missing names (since the user may not be in the address book).

lazerwalker commented 10 years ago

Looks good. Thanks!