From 13ad98352f5f7926bf6f250ac0ac90dfa4146b87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=91=E8=B4=A8?= Date: Wed, 14 Dec 2022 16:11:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC=E6=8E=A8=E8=BF=9B=E8=87=B33.?= =?UTF-8?q?0.11?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 从全前缀指令过滤迁移至精确指令识别过滤 --- OlivaDiceJoy/app.json | 4 ++-- OlivaDiceJoy/data.py | 4 ++-- OlivaDiceJoy/msgReply.py | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/OlivaDiceJoy/app.json b/OlivaDiceJoy/app.json index c69b3c8..91990b0 100644 --- a/OlivaDiceJoy/app.json +++ b/OlivaDiceJoy/app.json @@ -4,8 +4,8 @@ "namespace" : "OlivaDiceJoy", "message_mode" : "old_string", "info" : "本模块为OlivaDice的娱乐模块,提供了一些无关紧要的娱乐功能,它们或许是与跑团关系不大、或许只是一些历史原因遗留下来的传统,总之,这些在野蛮生长时期被或是由于开发者无知、或是作为恶性竞争手段、或是用户呼声较大但对于跑团而言意义不明的,被添加进来的小功能,都会被放入这个模块。", - "version" : "3.0.10", - "svn" : 18, + "version" : "3.0.11", + "svn" : 19, "compatible_svn" : 101, "priority" : 20010, "support" : [ diff --git a/OlivaDiceJoy/data.py b/OlivaDiceJoy/data.py index 33bcc6d..f5e97cb 100644 --- a/OlivaDiceJoy/data.py +++ b/OlivaDiceJoy/data.py @@ -15,8 +15,8 @@ ''' -OlivaDiceJoy_ver = '3.0.10' -OlivaDiceJoy_svn = 18 +OlivaDiceJoy_ver = '3.0.11' +OlivaDiceJoy_svn = 19 OlivaDiceJoy_ver_short = '%s(%s)' % (str(OlivaDiceJoy_ver), str(OlivaDiceJoy_svn)) listPlugin = [] diff --git a/OlivaDiceJoy/msgReply.py b/OlivaDiceJoy/msgReply.py index bf43316..90ddc0a 100644 --- a/OlivaDiceJoy/msgReply.py +++ b/OlivaDiceJoy/msgReply.py @@ -303,7 +303,7 @@ def unity_reply(plugin_event, Proc): #此群关闭时中断处理 if not flag_groupEnable and not flag_force_reply: return - if isMatchWordStart(tmp_reast_str, 'jrrp'): + if isMatchWordStart(tmp_reast_str, 'jrrp', isCommand = True): tmp_reast_str = getMatchWordStartRight(tmp_reast_str, 'jrrp') tmp_reast_str = skipSpaceStart(tmp_reast_str) tmp_reast_str = tmp_reast_str.rstrip(' ') @@ -317,7 +317,7 @@ def unity_reply(plugin_event, Proc): if tmp_reply_str != None: replyMsg(plugin_event, tmp_reply_str) return - elif isMatchWordStart(tmp_reast_str, 'zrrp'): + elif isMatchWordStart(tmp_reast_str, 'zrrp', isCommand = True): tmp_reast_str = getMatchWordStartRight(tmp_reast_str, 'zrrp') tmp_reast_str = skipSpaceStart(tmp_reast_str) tmp_reast_str = tmp_reast_str.rstrip(' ') @@ -331,7 +331,7 @@ def unity_reply(plugin_event, Proc): if tmp_reply_str != None: replyMsg(plugin_event, tmp_reply_str) return - elif isMatchWordStart(tmp_reast_str, 'mrrp'): + elif isMatchWordStart(tmp_reast_str, 'mrrp', isCommand = True): tmp_reast_str = getMatchWordStartRight(tmp_reast_str, 'mrrp') tmp_reast_str = skipSpaceStart(tmp_reast_str) tmp_reast_str = tmp_reast_str.rstrip(' ')