]> git.lizzy.rs Git - luairc.git/blobdiff - src/irc/misc.lua
convert parse_user to an internal function, since apparently that's how i've been...
[luairc.git] / src / irc / misc.lua
index bf4a671415c55ccb6a14b0a2e90aef078ea78d86..92c3ac4edc4d6e27cc19e56141387f8ddb348594 100644 (file)
@@ -273,17 +273,15 @@ function _value_iter(state, arg, pred)
     return val
 end
 -- }}}
--- }}}
 
--- public functions {{{
--- parse_user {{{
----
+-- _parse_user {{{
+--
 -- Gets the various parts of a full username.
 -- @param user A usermask (i.e. returned in the from field of a callback)
 -- @return nick
 -- @return username (if it exists)
 -- @return hostname (if it exists)
-function parse_user(user)
+function _parse_user(user)
     local found, bang, nick = user:find("^([^!]*)!")
     if found then
         user = user:sub(bang + 1)