summaryrefslogtreecommitdiff
path: root/luamods
diff options
context:
space:
mode:
Diffstat (limited to 'luamods')
-rw-r--r--luamods/event.lua4
-rw-r--r--luamods/notify.lua4
2 files changed, 8 insertions, 0 deletions
diff --git a/luamods/event.lua b/luamods/event.lua
index 8639023..7d64c50 100644
--- a/luamods/event.lua
+++ b/luamods/event.lua
@@ -9,6 +9,10 @@ local function parse_target(value)
type = str_to_event_type(parts[2])
}
+ if event_type_to_str(data.type) ~= parts[2] then
+ data.type = nil
+ end
+
if data.type == nil then
return data
end
diff --git a/luamods/notify.lua b/luamods/notify.lua
index 36bcb78..db30ec9 100644
--- a/luamods/notify.lua
+++ b/luamods/notify.lua
@@ -9,6 +9,10 @@ local function parse_target(value)
type = str_to_event_type(parts[2])
}
+ if event_type_to_str(data.type) ~= parts[2] then
+ data.type = nil
+ end
+
if data.type == nil then
return data
end