Actions
Support #3789
closedHow to strip color from messages using C# and API V2?
Start date:
01/25/2018
Due date:
% Done:
0%
Estimated time:
Operative System:
All
Description
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 almost 7 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
Example:
string text = "bla bla"; text = host.ActiveIWindow.Evaluate("$strip(" + text + ")", "");
Updated by Per Amundsen almost 7 years ago
- Status changed from Assigned to Resolved
Added for next beta.
Updated by Per Amundsen almost 7 years ago
- Status changed from Resolved to Closed
Actions