atmos/hubot-gtalk — pull request #16 by noazark (2012-08-21 14:29:58+00:00)
Title: Better name prefixing

`#handleMessage` previously didn't match against the robot's alias.

```bash
$ hubot -a gtalk -n hubot --alias huey
...
hubot> huey help
# prefixing results in: hubot huey help
```

In this case, aliases would never worked. The fix was just to use the robot's matchers, as seen in [robot.coffee line 78](https://github.com/github/hubot/blob/394db42002b0d98606774d22a27a5ab55416e07e/src/robot.coffee#L78), slightly modified so they don't concern themselves with the message pattern.

Also added a conditional to only prefix if the message's type is 'chat' (as opposed to groupchat or something). This is specifically for use along side #15, but doesn't break anything w/o that pull.