3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 09:19:23 +01:00

hybrid, ts6: adjust umode definitions again

- Prefix non-standard snomask umodes with sno_ to avoid confusion
- Remove _hybrid suffixes and chary_ prefixes, they serve little use
- Re-map some hybrid modes to match existing definitions: showadmin->admin, smessages->snomask, hideops->hideoper, softcallerid->deaf_commonchan
This commit is contained in:
James Lu 2016-04-29 22:39:37 -07:00
parent 0061414ee5
commit b61ac21e86
2 changed files with 13 additions and 13 deletions

View File

@ -44,16 +44,16 @@ class HybridProtocol(TS6Protocol):
self.irc.cmodes = cmodes self.irc.cmodes = cmodes
umodes = { umodes = {
'oper': 'o', 'invisible': 'i', 'wallops': 'w', 'chary_locops': 'l', 'oper': 'o', 'invisible': 'i', 'wallops': 'w', 'locops': 'l',
'cloak_hybrid': 'x', 'hidechans': 'p', 'regdeaf': 'R', 'deaf': 'D', 'cloak': 'x', 'hidechans': 'p', 'regdeaf': 'R', 'deaf': 'D',
'callerid': 'g', 'showadmin': 'a', 'softcallerid': 'G', 'hideops': 'H', 'callerid': 'g', 'admin': 'a', 'deaf_commonchan': 'G', 'hideoper': 'H',
'webirc': 'W', 'client_connections': 'c', 'bad_client_connections': 'u', 'webirc': 'W', 'sno_clientconnections': 'c', 'sno_badclientconnections': 'u',
'rejected_clients': 'j', 'skill_notices': 'k', 'fullauthblock': 'f', 'sno_rejectedclients': 'j', 'sno_skill': 'k', 'sno_fullauthblock': 'f',
'remote_client_connections': 'F', 'admin_requests': 'y', 'debug': 'd', 'sno_remoteclientconnections': 'F', 'sno_admin_requests': 'y', 'debug': 'd',
'nickchange_notices': 'n', 'hideidle': 'q', 'registered': 'r', 'sno_nickchange': 'n', 'hideidle': 'q', 'registered': 'r',
'smessages': 's', 'ssl': 'S', 'sjoins': 'e', 'botfloods': 'b', 'snomask': 's', 'ssl': 'S', 'sno_server_connects': 'e', 'sno_botfloods': 'b',
# Now, map all the ABCD type modes: # Now, map all the ABCD type modes:
'*A': '', '*B': '', '*C': '', '*D': 'oiwlpRDgdx' '*A': '', '*B': '', '*C': '', '*D': 'DFGHRSWabcdefgijklnopqrsuwxy'
} }
self.irc.umodes = umodes self.irc.umodes = umodes

View File

@ -281,8 +281,8 @@ class TS6Protocol(TS6BaseProtocol):
chary_umodes = {'deaf': 'D', 'servprotect': 'S', 'u_admin': 'a', chary_umodes = {'deaf': 'D', 'servprotect': 'S', 'u_admin': 'a',
'invisible': 'i', 'oper': 'o', 'wallops': 'w', 'invisible': 'i', 'oper': 'o', 'wallops': 'w',
'snomask': 's', 'u_noforward': 'Q', 'regdeaf': 'R', 'snomask': 's', 'u_noforward': 'Q', 'regdeaf': 'R',
'callerid': 'g', 'chary_operwall': 'z', 'chary_locops': 'callerid': 'g', 'operwall': 'z', 'locops': 'l',
'l', 'cloak': 'x', 'cloak': 'x',
# Now, map all the ABCD type modes: # Now, map all the ABCD type modes:
'*A': '', '*B': '', '*C': '', '*D': 'DSaiowsQRgzlx'} '*A': '', '*B': '', '*C': '', '*D': 'DSaiowsQRgzlx'}
self.irc.umodes = chary_umodes self.irc.umodes = chary_umodes