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

The length of the sent messages is limited and does not change in the settings! #575

Open
Phazeus opened this issue Jul 20, 2022 · 3 comments

Comments

@Phazeus
Copy link

Phazeus commented Jul 20, 2022

When sending a message whose length exceeds about 250 characters (I didn't count exactly, but the messages are short), the message is cut off.
The messageSplit:2048 parameter does not help, the behavior does not change.
What can be done?
(Server allow to send long messages)

@madprops
Copy link

I think it cuts off at around 440 chars.
I had problems with this when there's emojis involved.
I think emojis are not being counted correctly.
And some parts get cut.
So I'm splitting messages myself with:

      if (message.length > 400) {
        let lines = message.match(/.{1,250}/g)

        for (let line of lines) {
          App.irc_client.say(channel, line)
        }
      }

This splits the message into smaller 250 length chunks.

@madprops
Copy link

Also just discovered this: https://morioh.com/p/f65839a85d1d

@madprops
Copy link

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

2 participants