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

Implement chanmode params. #351

Closed
wants to merge 3 commits into from
Closed

Implement chanmode params. #351

wants to merge 3 commits into from

Conversation

Timer
Copy link
Contributor

@Timer Timer commented Apr 14, 2015

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.

@Timer
Copy link
Contributor Author

Timer commented Apr 14, 2015

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);
Copy link
Collaborator

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)

@jirwin
Copy link
Collaborator

jirwin commented Apr 15, 2015

Tests please

@jirwin jirwin mentioned this pull request Apr 15, 2015
@Timer
Copy link
Contributor Author

Timer commented Apr 16, 2015

Added tests.

@Timer Timer force-pushed the master branch 5 times, most recently from 54a043d to c4e5f81 Compare April 16, 2015 18:55
@Timer
Copy link
Contributor Author

Timer commented Apr 16, 2015

Rebased to remove merge commits, per request of @vBm on IRC.

@vBm
Copy link
Contributor

vBm commented Apr 16, 2015

Sorry if it sound as a request, it was just merely a suggestion.
But good job :P

On Thu, Apr 16, 2015 at 8:57 PM, Joe Haddad [email protected]
wrote:

Rebased to remove merge commits, per request of @vBm
https://github.com/vBm on IRC.


Reply to this email directly or view it on GitHub
#351 (comment).

Timer added 3 commits July 9, 2015 13:52
…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).
@jirwin
Copy link
Collaborator

jirwin commented Jan 29, 2016

Looks great. Thanks for this! I manually rebased this and merged it in ee5c550

@Timer
Copy link
Contributor Author

Timer commented Jan 29, 2016

Cool @jirwin! I would've rebased if you asked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants