Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kurahaupo
Copy link
Contributor

  • handle mIRC extended colour codes 16~98
  • handle ANSI escape-sequences for colour codes and other attributes

@kurahaupo
Copy link
Contributor Author

(please squash before merging)

@kurahaupo
Copy link
Contributor Author

This patch also fixes a bug where a digit following a colour code would sometimes be taken to be part of that code. (It ensures that when sending a colour code, it always ends with two digits when it's followed by a literal digit).

It also applies some minor optimisations to send bold/italic/underline to reset those attributes (since they're defined to be toggles), rather than sending a reset and the have to re-enable all other attributes. (It still sends a reset when intending to reach the default state, to minimise the effects in other clients that might mishandle toggled attribute.)

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

Successfully merging this pull request may close these issues.

1 participant