Skip to content

Commit

Permalink
Merge pull request #438 from hexjelly/master
Browse files Browse the repository at this point in the history
Allow tilde in nicks
  • Loading branch information
jirwin committed Jan 28, 2016
2 parents 7daf18a + 9cbd770 commit 6915e87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/parse_message.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = function parseMessage(line, stripColors) {
if (match) {
message.prefix = match[1];
line = line.replace(/^:[^ ]+ +/, '');
match = message.prefix.match(/^([_a-zA-Z0-9\[\]\\`^{}|-]*)(!([^@]+)@(.*))?$/);
match = message.prefix.match(/^([_a-zA-Z0-9\~\[\]\\`^{}|-]*)(!([^@]+)@(.*))?$/);
if (match) {
message.nick = match[1];
message.user = match[3];
Expand Down

0 comments on commit 6915e87

Please sign in to comment.