From d01a9fe9b4bf5b12b8b026b2aa5407304a484abd Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 10 Nov 2018 23:21:44 -0800 Subject: [PATCH] antispam: more lookalike chars for o, \, # --- plugins/antispam.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/antispam.py b/plugins/antispam.py index aa5ea3d..f6c16a1 100644 --- a/plugins/antispam.py +++ b/plugins/antispam.py @@ -50,7 +50,7 @@ _UNICODE_CHARMAP = { 'l': 'โ…ผ', 'm': 'โ…ฟm', 'n': 'nีธีผ๐ง๐‘›๐’๐“ƒ๐“ท๐”ซ๐•Ÿ๐–“๐—‡๐—ป๐˜ฏ๐™ฃ๐š—แฅ’', - 'o': 'โฒŸเด ฮฟ', + 'o': 'โฒŸเด ฮฟะพ', 'p': 'pฯฯฑั€โดโฒฃ๐ฉ๐‘๐’‘๐“…๐“น๐”ญ๐•ก๐–•๐—‰๐—ฝ๐˜ฑ๐™ฅ๐š™๐›’๐› ๐œŒ๐œš๐†๐”๐ž€๐žŽ๐žบ๐Ÿˆ', 'q': 'qิ›ีฃีฆ๐ช๐‘ž๐’’๐“†๐“บ๐”ฎ๐•ข๐––๐—Š๐—พ๐˜ฒ๐™ฆ๐šš', 'r': 'rะณแดฆโฒ…๐ซ๐‘Ÿ๐’“๐“‡๐“ป๐”ฏ๐•ฃ๐–—๐—‹๐—ฟ๐˜ณ๐™ง๐š›', @@ -63,12 +63,13 @@ _UNICODE_CHARMAP = { 'y': 'yษฃสฮณัƒาฏแƒงแถŒแปฟโ„ฝ๐ฒ๐‘ฆ๐’š๐“Ž๐”‚๐”ถ๐•ช๐–ž๐—’๐˜†๐˜บ๐™ฎ๐šข๐›„๐›พ๐œธ๐ฒ๐žฌ', 'z': 'zแดข๐ณ๐‘ง๐’›๐“๐”ƒ๐”ท๐•ซ๐–Ÿ๐—“๐˜‡๐˜ป๐™ฏ๐šฃ', '/': 'แœตโ„โˆ•โงธ๏ผ', - '\\': 'โงต๏นจ', + '\\': 'โงต๏นจโงน๏ผผ', ' ': '\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\xa0\u202f\u205f', '.': 'โ€ค๏ผŽ', '-': 'ห—โ•ด๏นฃ๏ผโˆ’โŽผ', '!': '๏น—๏ผวƒโต‘๏ธ•', ':': ':หธึ‰แกแ›ฌโšโˆถโ †๏ธ“๏น•', + '#': '๏ผƒ๏นŸ' } def _prep_maketrans(data):