summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-08-05 05:01:58 +0200
committerWuzzy <almikes@aol.com>2016-08-05 05:01:58 +0200
commited340a63aadb51905d954b1bdc9344993e345b45 (patch)
tree5e521a6a7b6d2e375af3df85ca4b72fda9f0d14f /init.lua
parentf62081758f367dfb9b7c0282881c0b5a0dea703f (diff)
Fix crash when using unknown groups
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index da6c0e2..736f2c1 100644
--- a/init.lua
+++ b/init.lua
@@ -50,7 +50,11 @@ local groups_to_string = function(grouptable, filter)
end
local group_to_string = function(groupname)
- return groupdefs[groupname]
+ if groupdefs[groupname] ~= nil then
+ return groupdefs[groupname]
+ else
+ return groupname
+ end
end
local burntime_to_text = function(burntime)