diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/irc.js | 20 |
1 files changed, 18 insertions, 2 deletions
@@ -74,8 +74,24 @@ export const ERR_SASLTOOLONG = "905"; export const ERR_SASLABORTED = "906"; export const ERR_SASLALREADY = "907"; -export const STD_MEMBERSHIPS = "~&@%+"; -export const STD_CHANTYPES = "#&+!"; +export const STD_MEMBERSHIP_NAMES = { + "~": "owner", + "&": "admin", + "@": "operator", + "%": "halfop", + "+": "voice", +}; + +export const STD_MEMBERSHIP_MODES = { + "~": "q", + "&": "a", + "@": "o", + "%": "h", + "+": "v", +}; + +const STD_MEMBERSHIPS = "~&@%+"; +const STD_CHANTYPES = "#&+!"; const tagEscapeMap = { ";": "\\:", |