From a813babb8927c474d1d43039a66c76c42e800fdb Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Fri, 2 Dec 2016 12:28:12 +0100
Subject: fancy-prompt.lua: fix parametrized modes
---
plugins/degesch/fancy-prompt.lua | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
(limited to 'plugins/degesch')
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
--
cgit v1.2.3-70-g09d2