Fix invalid notification on some commands
This commit is contained in:
parent
691285a78e
commit
9f374f0b1a
2 changed files with 20 additions and 7 deletions
|
@ -31,7 +31,7 @@ class ModcaseCog(Cog):
|
|||
"""
|
||||
name = self.__name__.replace("Cog", "")
|
||||
|
||||
if name in MODLOG_LOOKUP and ctx.command not in IGNORE_COMMANDS[name]:
|
||||
if name in MODLOG_LOOKUP and ctx.invoke_target not in IGNORE_COMMANDS[name]:
|
||||
user = kwargs.pop("user", None)
|
||||
if not user and not ctx.target_id:
|
||||
self.logger.warning("Admin action %s missing user, exiting", name)
|
||||
|
|
25
poetry.lock
generated
25
poetry.lock
generated
|
@ -307,7 +307,7 @@ python-versions = ">=3.5"
|
|||
|
||||
[[package]]
|
||||
name = "jarvis-core"
|
||||
version = "0.9.1"
|
||||
version = "0.9.2"
|
||||
description = "JARVIS core"
|
||||
category = "main"
|
||||
optional = false
|
||||
|
@ -317,6 +317,7 @@ develop = false
|
|||
[package.dependencies]
|
||||
aiohttp = "^3.8.1"
|
||||
motor = "^2.5.1"
|
||||
nanoid = "^2.0.0"
|
||||
orjson = "^3.6.6"
|
||||
pytz = "^2022.1"
|
||||
PyYAML = "^6.0"
|
||||
|
@ -327,7 +328,7 @@ umongo = "^3.1.0"
|
|||
type = "git"
|
||||
url = "https://git.zevaryx.com/stark-industries/jarvis/jarvis-core.git"
|
||||
reference = "main"
|
||||
resolved_reference = "aa13a556d67e926aca6e3053aa383d9cdf5a88b1"
|
||||
resolved_reference = "83117c1b3c5540acadeac3005f4d8e69cbf743fc"
|
||||
|
||||
[[package]]
|
||||
name = "jinxed"
|
||||
|
@ -407,6 +408,14 @@ category = "main"
|
|||
optional = false
|
||||
python-versions = ">=3.7"
|
||||
|
||||
[[package]]
|
||||
name = "nanoid"
|
||||
version = "2.0.0"
|
||||
description = "A tiny, secure, URL-friendly, unique string ID generator for Python"
|
||||
category = "main"
|
||||
optional = false
|
||||
python-versions = "*"
|
||||
|
||||
[[package]]
|
||||
name = "numpy"
|
||||
version = "1.22.3"
|
||||
|
@ -483,11 +492,11 @@ python-versions = ">=3.10"
|
|||
aiohttp = {version = "3.8.1", markers = "python_version >= \"3.6\""}
|
||||
aiosignal = {version = "1.2.0", markers = "python_version >= \"3.6\""}
|
||||
async-timeout = {version = "4.0.2", markers = "python_version >= \"3.6\""}
|
||||
attrs = {version = "21.4.0", markers = "python_version >= \"3.6\""}
|
||||
attrs = {version = "21.4.0", markers = "python_version >= \"3.6\" and python_full_version < \"3.0.0\" or python_full_version >= \"3.5.0\" and python_version >= \"3.6\""}
|
||||
certifi = {version = "2021.10.8", markers = "python_version >= \"2.7\" and python_full_version < \"3.0.0\" or python_full_version >= \"3.6.0\""}
|
||||
charset-normalizer = {version = "2.0.12", markers = "python_full_version >= \"3.6.0\""}
|
||||
charset-normalizer = {version = "2.0.12", markers = "python_full_version >= \"3.6.0\" and python_version >= \"3.6\""}
|
||||
frozenlist = {version = "1.3.0", markers = "python_version >= \"3.7\""}
|
||||
idna = {version = "3.3", markers = "python_full_version >= \"3.6.0\""}
|
||||
idna = {version = "3.3", markers = "python_version >= \"3.6\" and python_full_version < \"3.0.0\" or python_full_version >= \"3.6.0\" and python_version >= \"3.6\""}
|
||||
multidict = {version = "6.0.2", markers = "python_version >= \"3.7\""}
|
||||
pycryptodome = {version = "3.14.1", markers = "python_version >= \"2.7\" and python_full_version < \"3.0.0\" or python_full_version >= \"3.5.0\""}
|
||||
requests = {version = "2.27.1", markers = "python_version >= \"2.7\" and python_full_version < \"3.0.0\" or python_full_version >= \"3.6.0\""}
|
||||
|
@ -879,7 +888,7 @@ multidict = ">=4.0"
|
|||
[metadata]
|
||||
lock-version = "1.1"
|
||||
python-versions = "^3.10"
|
||||
content-hash = "ddb58df08ef6eb999fc99db2b785fe6f6daa641aaf451daba6d8be1708ba7e3d"
|
||||
content-hash = "8bb2b59de1ccb8f5e5588ae3ac600e7fb6d7f638224c9cc24228f79e666aec63"
|
||||
|
||||
[metadata.files]
|
||||
aiofile = [
|
||||
|
@ -1208,6 +1217,10 @@ multidict = [
|
|||
{file = "multidict-6.0.2-cp39-cp39-win_amd64.whl", hash = "sha256:4bae31803d708f6f15fd98be6a6ac0b6958fcf68fda3c77a048a4f9073704aae"},
|
||||
{file = "multidict-6.0.2.tar.gz", hash = "sha256:5ff3bd75f38e4c43f1f470f2df7a4d430b821c4ce22be384e1459cb57d6bb013"},
|
||||
]
|
||||
nanoid = [
|
||||
{file = "nanoid-2.0.0-py3-none-any.whl", hash = "sha256:90aefa650e328cffb0893bbd4c236cfd44c48bc1f2d0b525ecc53c3187b653bb"},
|
||||
{file = "nanoid-2.0.0.tar.gz", hash = "sha256:5a80cad5e9c6e9ae3a41fa2fb34ae189f7cb420b2a5d8f82bd9d23466e4efa68"},
|
||||
]
|
||||
numpy = [
|
||||
{file = "numpy-1.22.3-cp310-cp310-macosx_10_14_x86_64.whl", hash = "sha256:92bfa69cfbdf7dfc3040978ad09a48091143cffb778ec3b03fa170c494118d75"},
|
||||
{file = "numpy-1.22.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:8251ed96f38b47b4295b1ae51631de7ffa8260b5b087808ef09a39a9d66c97ab"},
|
||||
|
|
Loading…
Add table
Reference in a new issue