mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-13 01:00:19 +00:00
Speed up Non-BMP filtering
This commit is contained in:
committed by
Berke Viktor
parent
902063d932
commit
dbef9c9eb4
@@ -312,8 +312,10 @@ server_inline (server *serv, char *line, int len)
|
||||
char *utf_line_allocated = NULL;
|
||||
|
||||
#ifdef WIN32
|
||||
#if 0
|
||||
char *cleaned_line;
|
||||
int cleaned_len;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* Checks whether we're set to use UTF-8 charset */
|
||||
@@ -403,12 +405,15 @@ server_inline (server *serv, char *line, int len)
|
||||
}
|
||||
|
||||
#ifdef WIN32
|
||||
#if 0
|
||||
cleaned_line = text_replace_non_bmp (line, len, &cleaned_len);
|
||||
if (cleaned_line != NULL ) {
|
||||
line = cleaned_line;
|
||||
len = cleaned_len;
|
||||
}
|
||||
#endif
|
||||
text_replace_non_bmp2 (line);
|
||||
#endif
|
||||
|
||||
fe_add_rawlog (serv, line, len, FALSE);
|
||||
|
||||
@@ -416,7 +421,9 @@ server_inline (server *serv, char *line, int len)
|
||||
serv->p_inline (serv, line, len);
|
||||
|
||||
#ifdef WIN32
|
||||
#if 0
|
||||
g_free (cleaned_line);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
if (utf_line_allocated != NULL) /* only if a special copy was allocated */
|
||||
|
||||
Reference in New Issue
Block a user