mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-27 00:01:27 +00:00
🔥 improve matcher store
This commit is contained in:
@ -65,8 +65,9 @@ class Plugin(object):
|
|||||||
|
|
||||||
|
|
||||||
def _store_matcher(matcher: Type[Matcher]):
|
def _store_matcher(matcher: Type[Matcher]):
|
||||||
plugin_name = matcher.module.split(".", maxsplit=1)[0]
|
if matcher.module:
|
||||||
_plugin_matchers[plugin_name].add(matcher)
|
plugin_name = matcher.module.split(".", maxsplit=1)[0]
|
||||||
|
_plugin_matchers[plugin_name].add(matcher)
|
||||||
|
|
||||||
|
|
||||||
def on(type: str = "",
|
def on(type: str = "",
|
||||||
|
Reference in New Issue
Block a user