diff options
-rw-r--r-- | plugins/degesch/fancy-prompt.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/degesch/fancy-prompt.lua b/plugins/degesch/fancy-prompt.lua index 1c3bb32..d7e0dc1 100644 --- a/plugins/degesch/fancy-prompt.lua +++ b/plugins/degesch/fancy-prompt.lua @@ -52,11 +52,11 @@ local prompt = degesch.hook_prompt (function (hook) if active ~= "" then active = "(" .. active .. ")" end local x = current_n .. ":" .. current.name if chan then - local param = "" + local params = "" for mode, param in pairs (chan.param_modes) do - param = param .. " +" .. mode .. " " .. param + params = params .. " +" .. mode .. " " .. param end - local modes = chan.no_param_modes .. param:sub (2) + local modes = chan.no_param_modes .. params:sub (3) if modes ~= "" then x = x .. "(+" .. modes .. ")" end if chan.users_len ~= 0 then x = x .. "{" .. chan.users_len .. "}" end end |