How to strip color from messages using C# and API V2?
I must be missing something. I know $strip exists for scripts. However, what/where/how is the method for those of us writing plugins in C# to strip formatting from an IRC message? I need to pass in a string, and get a returned string without color codes.
Updated by Per Amundsen over 2 years ago
- Status changed from New to Assigned
It seems I forgot to add the strip API's when I converted from V1, I will add them for next beta, for now you can use $strip through this API https://adiirc.github.io/apiv2/generated/html/f31933b4-7d1a-a5f4-bbf1-19be23ab3c30.htm
string text = "bla bla"; text = host.ActiveIWindow.Evaluate("$strip(" + text + ")", "");