aboutsummaryrefslogtreecommitdiff
path: root/plugins/degesch
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2016-12-02 12:28:12 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2016-12-02 12:28:55 +0100
commita813babb8927c474d1d43039a66c76c42e800fdb (patch)
tree35d6c4ca61762ebb3a37a70f98b7ed54b65d61b5 /plugins/degesch
parentb666ce69265797a4878cd7d302e5903d976b7c78 (diff)
downloadxK-a813babb8927c474d1d43039a66c76c42e800fdb.tar.gz
xK-a813babb8927c474d1d43039a66c76c42e800fdb.tar.xz
xK-a813babb8927c474d1d43039a66c76c42e800fdb.zip
fancy-prompt.lua: fix parametrized modes
Diffstat (limited to 'plugins/degesch')
-rw-r--r--plugins/degesch/fancy-prompt.lua6
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