Surrogate nur für Sudoer
This commit is contained in:
parent
83a637bc29
commit
e0f53dd205
@ -6,7 +6,11 @@ surrogate.triggers = {
|
|||||||
"^/s (@[A-Za-z0-9-_-.-._.]+) +(.+)"
|
"^/s (@[A-Za-z0-9-_-.-._.]+) +(.+)"
|
||||||
}
|
}
|
||||||
|
|
||||||
function surrogate:action(msg)
|
function surrogate:action(msg, config, matches)
|
||||||
|
if not is_sudo(msg, config) then
|
||||||
|
utilities.send_reply(self, msg, config.errors.sudo)
|
||||||
|
return
|
||||||
|
end
|
||||||
utilities.send_message(self, matches[1], matches[2], true, nil, true)
|
utilities.send_message(self, matches[1], matches[2], true, nil, true)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user