Use a zero-width non-joiner to prevent highlights, instead of a zero-width

joiner
This commit is contained in:
jesopo 2018-09-29 15:57:15 +01:00
parent bcb67db3fd
commit 63fc39e448

View file

@ -275,7 +275,7 @@ def get_closest_setting(event, setting, default=None):
return closest.get_setting(setting, server.get_setting(setting, default)) return closest.get_setting(setting, server.get_setting(setting, default))
def prevent_highlight(nickname): def prevent_highlight(nickname):
return nickname[0]+"\u200d"+nickname[1:] return nickname[0]+"\u200c"+nickname[1:]
def _set_get_append(obj, setting, item): def _set_get_append(obj, setting, item):
if not hasattr(obj, setting): if not hasattr(obj, setting):