diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-11-21 19:16:03 +0100 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-11-21 19:16:03 +0100 |
commit | 783fefdcb375ab58382579afeb092c67b8832813 (patch) | |
tree | fbb3b16efd0b74796c33c2e8754863ea148f2c6c /src/irc/constants.lua | |
parent | 09628cded4b1d5a47b82d0b13eaf1789adb35e91 (diff) | |
download | luairc-783fefdcb375ab58382579afeb092c67b8832813.tar.xz |
Diffstat (limited to 'src/irc/constants.lua')
-rw-r--r-- | src/irc/constants.lua | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/irc/constants.lua b/src/irc/constants.lua index b26cecb..dfee506 100644 --- a/src/irc/constants.lua +++ b/src/irc/constants.lua @@ -1,13 +1,13 @@ --- -- This module holds various constants used by the IRC protocol. -module "irc.constants" +local constants = {} -- protocol constants {{{ -IRC_MAX_MSG = 512 +constants.IRC_MAX_MSG = 512 -- }}} -- server replies {{{ -replies = { +constants.replies = { -- Command responses {{{ [001] = "RPL_WELCOME", [002] = "RPL_YOURHOST", @@ -183,9 +183,11 @@ replies = { -- }}} -- chanmodes {{{ -chanmodes = { +constants.chanmodes = { ["@"] = "secret", ["*"] = "private", ["="] = "public" } -- }}} + +return constants |