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

New line character goes into separate message #563

Open
acagastya opened this issue Nov 13, 2020 · 3 comments
Open

New line character goes into separate message #563

acagastya opened this issue Nov 13, 2020 · 3 comments

Comments

@acagastya
Copy link

Hi, I have noticed a new-line character in the message separates into two messages. Is that an expected behaviour. If so, how can one send a single message with a line-break in it?

@memoric
Copy link

memoric commented Jan 4, 2021

Yes, it's an expected behavior.
CR &/or LF are perceived as message-ending characters from the IRC protocol (see here).
So no, we can't send multiline messages. 😕

@acagastya
Copy link
Author

Okay, @memoric. The problem I am facing is this:
I have a msg which may contain line breaks and I need to send the message in red colour. So, I am doing resp = ircColor.red(msg). But due to the line break, not everything is in the same colour. This would mean, I should probably ask about this with the maintainers of irc-colour, right?

(You can close this issue)

@calmsleeper
Copy link

TypeError: args[(args.length - 1)].match is not a function

sorry to bump this but I am working with your wrapper and encountered this issue.

this happens when I return an openweather API search query. the JSON comes back formatted properly but it has to send in more than 1 message as an array so I've used \n to break it up resulting in the above error.

Any feedback is appreciated thank you.

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

3 participants