Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emit 'message#' for a channel message #67

Merged
merged 1 commit into from
Nov 17, 2011
Merged

Emit 'message#' for a channel message #67

merged 1 commit into from
Nov 17, 2011

Conversation

alexwhitman
Copy link
Contributor

'message' is emitted for both a channel message and a pm. When listening for 'message' I have to do a check to see if it's from a channel or if it's a pm (In my case I can't really use the 'message#channel' event). This can be done by checking if the 'to' argument starts with # but as that check is already done in the library, it's simpler to just add another emit.

@martynsmith martynsmith merged commit 7a4d6f4 into martynsmith:master Nov 17, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants