Sfoglia il codice sorgente

feat(pkuxkx): 捕捉玩家分享的房间信息,避免乱入到游戏主屏

dzp 1 anno fa
parent
commit
4032f203ca
1 ha cambiato i file con 15 aggiunte e 0 eliminazioni
  1. 15 0
      mud/pkuxkx/plugins/lib/ui/chat.tin

+ 15 - 0
mud/pkuxkx/plugins/lib/ui/chat.tin

@@ -178,6 +178,21 @@ load-lib alert;
 
         #return;
     };
+    #elseif { {$text} == {%c【闲聊】%c%u%c(%w)向在场众人展示了自己所处的%*的风景%c。%c} } {
+        #class chat.log open;
+
+        #action {~^%*{|ID=chat.log}$} {
+            chat.log {%1} {%%0};
+        } {4.993};
+
+        #action {^{|ID=chat.log}$} {
+            #class chat.log kill;
+        } {4.992};
+
+        #class chat.log close;
+
+        #return;
+    };
 
     #if { "$type" != "{闲聊|求助|谣言}" } {
         #return;