diff options
author | ubq323 <ubq323@ubq323.website> | 2025-02-23 23:43:28 +0000 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2025-02-23 23:43:28 +0000 |
commit | 7d396195e4f97a094610fecc658aed6a67fd464d (patch) | |
tree | 9439b9c9f0ba87b8b3f7a10a5d116de32a55e21f | |
parent | 989b6349b0c7e5a0d7ec06d2ca24d629c618fe12 (diff) |
parse_src improve
-rw-r--r-- | rirc.lua | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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 |