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

Colons in user messages cause issues #122

Closed
cwc opened this issue Nov 14, 2012 · 4 comments
Closed

Colons in user messages cause issues #122

cwc opened this issue Nov 14, 2012 · 4 comments

Comments

@cwc
Copy link

cwc commented Nov 14, 2012

Causes thedjpetersen/subway#174

Problem code seems to be here: https://github.com/martynsmith/node-irc/blob/master/lib/irc.js#L875-882

The regex is apparently not robust enough to fully handle colon characters in a multi-word message. Emoticons in particular are a problem.

A message like:

What's up? :)

is sent to node-irc Client listeners as:

:What's

I'd attempt to provide a corrected regex, but I'm not that knowledgeable on the IRC protocol and would probably break this logic for input that is currently handled correctly.

Pumpuli added a commit to Pumpuli/node-irc that referenced this issue Nov 14, 2012
@cwc
Copy link
Author

cwc commented Nov 14, 2012

@cwc
Copy link
Author

cwc commented Nov 15, 2012

One minor problem remains with the fix in c1659f9 - messages that begin with a colon. E.g. :) will be received as ).

@rickihastings
Copy link

Not sure if this is causing you guys problems but that regex doesn't seem to completely fix it for me? It still prepends the : infront of the message. Heres a fix i've proposed without the need for using more regex calls in the parsing method too. #128

quentinxs added a commit to quentinxs/node-irc that referenced this issue Jan 19, 2013
This fixes issues martynsmith#122, martynsmith#128 and martynsmith#133.

Example lines include:
    :some.irc.net 324 webuser #channel +Cnj 5:10
    :nick!user@host QUIT :Ping timeout: 252 seconds
    :nick!user@host PRIVMSG #channel :so : colons: :are :: not a problem ::::
@Fauntleroy
Copy link

Didn't af6f07f fix this as well?

uiur pushed a commit to uiur/node-irc that referenced this issue Feb 2, 2013
This fixes issues martynsmith#122, martynsmith#128 and martynsmith#133.

Example lines include:
    :some.irc.net 324 webuser #channel +Cnj 5:10
    :nick!user@host QUIT :Ping timeout: 252 seconds
    :nick!user@host PRIVMSG #channel :so : colons: :are :: not a problem ::::
@osslate osslate closed this as completed May 29, 2014
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

No branches or pull requests

4 participants