aboutsummaryrefslogtreecommitdiff
path: root/lib/irc.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/irc.js20
1 files changed, 18 insertions, 2 deletions
diff --git a/lib/irc.js b/lib/irc.js
index dafa99b..11ea578 100644
--- a/lib/irc.js
+++ b/lib/irc.js
@@ -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 = {
";": "\\:",