From 7b7a24c3f27b74e95c24e62917bcc4ba8478196d Mon Sep 17 00:00:00 2001 From: jluehrs2 Date: Tue, 4 Sep 2007 15:07:32 -0500 Subject: there shouldn't ever be a reason to not want to strip ctcp quoting off when splitting, so remove that option --- src/irc/ctcp.lua | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/irc/ctcp.lua') diff --git a/src/irc/ctcp.lua b/src/irc/ctcp.lua index 97b880d..1866122 100644 --- a/src/irc/ctcp.lua +++ b/src/irc/ctcp.lua @@ -73,12 +73,12 @@ end -- _ctcp_split {{{ -- TODO: again with this string/table thing... it's ugly! -- --- Splits a low level dequoted string into normal text and CTCP messages. +-- Splits a low level dequoted string into normal text and unquoted CTCP +-- messages. -- @param str Low level dequoted string --- @param dequote If true, the CTCP messages will also be CTCP dequoted -- @return Array, where string values correspond to plain text, and table -- values have t[1] as the CTCP message -function _ctcp_split(str, dequote) +function _ctcp_split(str) local ret = {} local iter = 1 while true do @@ -97,11 +97,7 @@ function _ctcp_split(str, dequote) end if not s then break end if ctcp_string ~= "" then - if dequote then - table.insert(ret, {_ctcp_dequote(ctcp_string)}) - else - table.insert(ret, {ctcp_string}) - end + table.insert(ret, {_ctcp_dequote(ctcp_string)}) end iter = e + 1 -- cgit v1.2.3-54-g00ecf