From 16a65213dcafa306f3d901762d36751a3f456979 Mon Sep 17 00:00:00 2001 From: jluehrs2 Date: Tue, 4 Sep 2007 21:58:27 -0500 Subject: convert parse_user to an internal function, since apparently that's how i've been using it --- src/irc.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/irc.lua') diff --git a/src/irc.lua b/src/irc.lua index b63a08c..49a11d3 100644 --- a/src/irc.lua +++ b/src/irc.lua @@ -103,7 +103,7 @@ local function incoming_message(sock) local msg = message._parse(raw_msg) misc._try_call_warn("Unhandled server message: " .. msg.command, handlers["on_" .. msg.command:lower()], - (misc.parse_user(msg.from)), base.unpack(msg.args)) + (misc._parse_user(msg.from)), base.unpack(msg.args)) return true end -- }}} @@ -207,7 +207,7 @@ function handlers.on_topic(from, chan, new_topic) base.assert(serverinfo.channels[chan], "Received topic message for unknown channel: " .. chan) serverinfo.channels[chan]._topic.text = new_topic - serverinfo.channels[chan]._topic.user = (misc.parse_user(from)) + serverinfo.channels[chan]._topic.user = from serverinfo.channels[chan]._topic.time = os.time() if serverinfo.channels[chan].join_complete then callback("topic_change", serverinfo.channels[chan]) -- cgit v1.2.3