-
Notifications
You must be signed in to change notification settings - Fork 423
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
Implement chanmode params. #351
Conversation
Very similar to #145. |
if (channel.users[user].indexOf(self.prefixForMode[mode]) === -1) | ||
channel.users[user] += self.prefixForMode[mode]; | ||
|
||
self.emit('+mode', message.args[0], message.nick, mode, user, message); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is important that we still emit these events(+mode
and -mode
)
Tests please |
Added tests. |
54a043d
to
c4e5f81
Compare
Rebased to remove merge commits, per request of @vBm on IRC. |
Sorry if it sound as a request, it was just merely a suggestion. On Thu, Apr 16, 2015 at 8:57 PM, Joe Haddad [email protected]
|
…erver. Add new key `modeParams` to the channel object, which has keys corresponding to the modes in `mode` that contain the parameter(s) as an array.
…elay the event but don't modify or add to a user. This commonly happens in a channel with +u (auditorum).
Looks great. Thanks for this! I manually rebased this and merged it in ee5c550 |
Cool @jirwin! I would've rebased if you asked. |
Opening this pull request to gain feedback and thoughts.
Once approved, I'll write up a set of tests to ensure it all works and no bugs will arise from the changes.