From 7d396195e4f97a094610fecc658aed6a67fd464d Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sun, 23 Feb 2025 23:43:28 +0000 Subject: parse_src improve --- rirc.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/rirc.lua b/rirc.lua index 95445ad..0508351 100644 --- a/rirc.lua +++ b/rirc.lua @@ -55,12 +55,7 @@ function irc.parse(line) end function irc.parse_src(src) - local s, _, nick, user, host = src:find("^(.*)!(.*)@(.*)$") - if s then - return true, nick, user, host - else - return false - end + return src:match"^(.*)!(.*)@(.*)$" end return irc -- cgit v1.2.3