Skip to content

Update irc.js #512

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/irc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This library is distributed in the hope that it will be useful,
This library is distributed in the hope that it will be useful,F
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a typo

but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Expand Down Expand Up @@ -389,6 +389,10 @@ function Client(server, nick, opt) {
if (channel) {
self.emit('names', message.args[1], channel.users);
self.emit('names' + message.args[1], channel.users);
// Emit channel names event also with lower case, same as join
if (message.args[1] != message.args[1].toLowerCase()) {
self.emit('names' + message.args[1].toLowerCase(), channel.users);
}
self.send('MODE', message.args[1]);
}
break;
Expand Down