Skip to content

Conversation

ailin-nemui
Copy link
Contributor

@ailin-nemui ailin-nemui commented Jun 18, 2019

this also fixed mIRC colours when colors_ansi_24bit is not enabled

@ailin-nemui
Copy link
Contributor Author

This PR was sponsored by bl1p

@ailin-nemui
Copy link
Contributor Author

@irssi/developers

@ailin-nemui ailin-nemui added the auto-merge This PR is scheduled for merge if no further comments are opened label Jun 26, 2019
@dwfreed
Copy link
Member

dwfreed commented Jun 27, 2019

This uses mod 100, meaning possible indices are 0-99; however, neither mirc_colors nor mirc_colors24 are long enough to have index 99.

@ailin-nemui
Copy link
Contributor Author

I would hope it does... hopefully only the comment is misleading

@dwfreed
Copy link
Member

dwfreed commented Jun 27, 2019

I failed at the math; indeed, only the comments are wrong (first line of both has 16, the 7 subsequent lines have 12 each; 16 + 7 * 12 = 100)

@ailin-nemui ailin-nemui merged commit d34bd85 into irssi:master Jun 27, 2019
@ailin-nemui ailin-nemui deleted the mirc-24 branch October 11, 2019 20:40
ailin-nemui added a commit that referenced this pull request Apr 8, 2021
Use the 24bit mIRC colour mappings if colors_ansi_24bit is enabled

(cherry picked from commit d34bd85)
@ailin-nemui ailin-nemui added this to the 1.2.3 milestone Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge This PR is scheduled for merge if no further comments are opened z-affects-1.2.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants