diff options
Diffstat (limited to 'rirc.lua')
-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 |