diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2016-12-30 07:49:10 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2016-12-30 08:08:34 +0100 |
commit | 8e668ff31ae75e51dd8c4e99758d38aced72036d (patch) | |
tree | 324b9f37eb3e68a0d7a97a986fa919a412eb5da6 /plugins/degesch/fancy-prompt.lua | |
parent | eb70bf3fbc69459043196de96030ada6015ce27f (diff) | |
download | xK-8e668ff31ae75e51dd8c4e99758d38aced72036d.tar.gz xK-8e668ff31ae75e51dd8c4e99758d38aced72036d.tar.xz xK-8e668ff31ae75e51dd8c4e99758d38aced72036d.zip |
Various fixes related to channel modes
Bugs unnoticed for so long.
Diffstat (limited to 'plugins/degesch/fancy-prompt.lua')
-rw-r--r-- | plugins/degesch/fancy-prompt.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/degesch/fancy-prompt.lua b/plugins/degesch/fancy-prompt.lua index d7e0dc1..b1b7c0e 100644 --- a/plugins/degesch/fancy-prompt.lua +++ b/plugins/degesch/fancy-prompt.lua @@ -51,14 +51,14 @@ local prompt = degesch.hook_prompt (function (hook) end if active ~= "" then active = "(" .. active .. ")" end local x = current_n .. ":" .. current.name - if chan then + if chan and chan.users_len ~= 0 then local params = "" for mode, param in pairs (chan.param_modes) do params = params .. " +" .. mode .. " " .. param end 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 + x = x .. "{" .. chan.users_len .. "}" end if current.hide_unimportant then x = x .. "<H>" end |