Skip to content
This repository has been archived by the owner on Feb 10, 2024. It is now read-only.

Hexchat crashes when adding color code to the timestamp #937

Closed
Cypherke opened this issue Apr 8, 2014 · 3 comments
Closed

Hexchat crashes when adding color code to the timestamp #937

Cypherke opened this issue Apr 8, 2014 · 3 comments

Comments

@Cypherke
Copy link

Cypherke commented Apr 8, 2014

Hey,

When trying to add color codes to the timestamp my hexchat crashes.

I use Win8.1 x64
Hexchat version: HexChat 2.9.6 Compiled: Sep 15 2013 Portable Mode: No Build Type: x64
My current timestamp: [%d-%m-%y][%H:%M:%S]
My wanted timestamp: %C11[%C14%d-%m-%y%C11][%C14%H:%M:%S%C11]%O

Greets

@Arnavion
Copy link
Contributor

Arnavion commented Apr 8, 2014

The timestamp format is passed to strftime, and %C is not a valid timestamp format.

If you want color codes, add them to text events.

That said, on Windows, before calling strftime the string is validated and unknown formats are escaped, so this should just have printed literal %C and %O instead of crashing...

@TingPing
Copy link
Member

TingPing commented Apr 8, 2014

You can insert the raw color codes in the timestamp but as @Arnavion said it doesn't parse %C. The crash itself has been fixed in later versions though.

So �20%H:%M:%S| will work and be red. Just format it in the input box and then paste it into the setting.

@TingPing TingPing closed this as completed Apr 8, 2014
@Cypherke
Copy link
Author

Cypherke commented Apr 8, 2014

Thx alot copy pasting works just fine 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants