mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 09:19:23 +01:00
relay: passthrough nicks in normalize_nick() on server supporting freeform-nicks
This commit is contained in:
parent
30f7a77d18
commit
1852ff5774
@ -149,6 +149,9 @@ def normalize_nick(irc, netname, nick, times_tagged=0, uid=''):
|
|||||||
UID is optional for checking regular nick changes, to make sure that the sender doesn't get
|
UID is optional for checking regular nick changes, to make sure that the sender doesn't get
|
||||||
marked as nick-colliding with itself.
|
marked as nick-colliding with itself.
|
||||||
"""
|
"""
|
||||||
|
if irc.has_cap('freeform-nicks'): # ☺
|
||||||
|
return nick
|
||||||
|
|
||||||
is_unicode_capable = irc.casemapping in ('utf8', 'utf-8', 'rfc7700')
|
is_unicode_capable = irc.casemapping in ('utf8', 'utf-8', 'rfc7700')
|
||||||
if USE_UNIDECODE and not is_unicode_capable:
|
if USE_UNIDECODE and not is_unicode_capable:
|
||||||
decoded_nick = unidecode.unidecode(nick).strip()
|
decoded_nick = unidecode.unidecode(nick).strip()
|
||||||
|
Loading…
Reference in New Issue
Block a user