Browse Source

fix(ui/chat): 个别聊天记录会被当成多行聊天,干扰机器运行

dzp 3 years ago
parent
commit
4e2fc6ea9d
1 changed files with 6 additions and 2 deletions
  1. 6 2
      mud/pkuxkx/plugins/lib/ui/chat.tin

+ 6 - 2
mud/pkuxkx/plugins/lib/ui/chat.tin

@@ -22,7 +22,7 @@
 };
 
 #nop 普通聊天信息;
-#action {~^%c【%+2..5u】%c%+1..10u%c({[a-z A-Z]+})%c: %*$E} {
+#action {~^%c【%+2..5u】%c%*%+1..10u%c({[a-z A-Z]+})%c: %*$E} {
     chat.log {%2} {%0};
 } {4.994};
 
@@ -68,7 +68,11 @@
         #return;
     };
 
-    #if { "$type" == "求助" && {$text} == {%c【求助】{我是大高手|大高手告诉|大高手说}%*} } {
+    #if { {$text} == {%c【求助】{我是大高手|大高手告诉|大高手说}%*} } {
+        #return;
+    };
+
+    #if { {$text} == {%c【谣言】某人: 我看到了!!就是%*造的谣!!%c} } {
         #return;
     };