mirror of
https://github.com/weechat/weechat.git
synced 2026-07-07 18:23:13 +02:00
Add hook type "command_run", add new function "string_remove_color" in plugin API (task #9089)
This commit is contained in:
@@ -51,6 +51,7 @@
|
||||
#include "weechat.h"
|
||||
#include "wee-string.h"
|
||||
#include "wee-utf8.h"
|
||||
#include "../gui/gui-color.h"
|
||||
|
||||
|
||||
/*
|
||||
@@ -1280,3 +1281,13 @@ string_format_size (unsigned long size)
|
||||
|
||||
return strdup (str_size);
|
||||
}
|
||||
|
||||
/*
|
||||
* string_remove_color: remove WeeChat color codes in string
|
||||
*/
|
||||
|
||||
char *
|
||||
string_remove_color (const char *string)
|
||||
{
|
||||
return (char *)gui_color_decode ((unsigned char *)string);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user