merge upstream
Disabled pattern lowercase matches Update isup.lua
This commit is contained in:
parent
281d01859b
commit
643d2554bf
@ -112,7 +112,7 @@ function match_plugin(plugin, plugin_name, msg)
|
||||
|
||||
-- Go over patterns. If one matches is enough.
|
||||
for k, pattern in pairs(plugin.patterns) do
|
||||
local matches = match_pattern(pattern, msg.text, true)
|
||||
local matches = match_pattern(pattern, msg.text)
|
||||
if matches then
|
||||
print("Nachricht stimmt überein mit ", pattern)
|
||||
|
||||
|
@ -103,9 +103,9 @@ local function run(msg, matches)
|
||||
return save_cron(msg, matches[2])
|
||||
|
||||
elseif isup(matches[1]) then
|
||||
return matches[1]..' ist UP'
|
||||
return matches[1]..' ist UP ✔'
|
||||
else
|
||||
return matches[1]..' scheint DOWN zu sein'
|
||||
return matches[1]..' scheint DOWN zu sein ❌'
|
||||
end
|
||||
end
|
||||
|
||||
@ -124,7 +124,8 @@ return {
|
||||
"^/ping (remove) (.*)$",
|
||||
"^/ping (save) (.*)$"
|
||||
},
|
||||
run = run
|
||||
run = run,
|
||||
cron = cron
|
||||
}
|
||||
|
||||
end
|
Reference in New Issue
Block a user