diff options
author | jluehrs2 <jluehrs2@uiuc.edu> | 2007-09-04 00:16:01 -0500 |
---|---|---|
committer | jluehrs2 <jluehrs2@uiuc.edu> | 2007-09-04 00:16:01 -0500 |
commit | fe55ffb0c76b0d32915f4957f463be2daf262ef7 (patch) | |
tree | f777f119a2115d3e810544e12bee9b40e8a26bf2 | |
parent | 11f6faae12d9831add356fd276fdc881bc4cca2f (diff) | |
download | luairc-fe55ffb0c76b0d32915f4957f463be2daf262ef7.tar.gz luairc-fe55ffb0c76b0d32915f4957f463be2daf262ef7.zip |
split between internal/public functions in message.lua
-rw-r--r-- | src/irc/message.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/irc/message.lua b/src/irc/message.lua index d6f5837..e05e87e 100644 --- a/src/irc/message.lua +++ b/src/irc/message.lua @@ -15,8 +15,8 @@ local table = require 'table' -- This module contains parsing functions for IRC server messages. module 'irc.message' --- local functions {{{ --- parse {{{ +-- internal functions {{{ +-- _parse {{{ -- -- Parse a server command. -- @param str Command to parse @@ -32,9 +32,9 @@ module 'irc.message' -- to the received command</li> -- -- </ul> -function parse(str) +function _parse(str) -- low-level ctcp quoting {{{ - str = ctcp.low_dequote(str) + str = ctcp._low_dequote(str) -- }}} -- parse the from field, if it exists (leading :) {{{ local from = "" @@ -52,12 +52,12 @@ function parse(str) if constants.replies[base.tonumber(command)] then command = constants.replies[base.tonumber(command)] else - irc_debug.warn("Unknown server reply: " .. command) + irc_debug._warn("Unknown server reply: " .. command) end end -- }}} -- get the args {{{ - local args = misc.split(argstr, " ", ":") + local args = misc._split(argstr, " ", ":") -- the first arg in a reply is always your nick if reply then table.remove(args, 1) end -- }}} |