]> git.lizzy.rs Git - luairc.git/commitdiff
split between internal/public functions in message.lua
authorjluehrs2 <jluehrs2@uiuc.edu>
Tue, 4 Sep 2007 05:16:01 +0000 (00:16 -0500)
committerjluehrs2 <jluehrs2@uiuc.edu>
Tue, 4 Sep 2007 05:16:01 +0000 (00:16 -0500)
src/irc/message.lua

index d6f583754ff19ef56a7d0c01c6f09b9423f2c590..e05e87e6e2eae31fe25b655bacc7bd2b5fe0f803 100644 (file)
@@ -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
     -- }}}