-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pkuxkx): 激活 score/jobquery 等命令中的超链接
- Loading branch information
Showing
3 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#nop vim: set filetype=tt:; | ||
|
||
/* | ||
本文件属于 PaoTin++ 的一部分。 | ||
PaoTin++ © 2020~2023 的所有版权均由担子炮(dzp <danzipao@gmail.com>) 享有并保留一切法律权利 | ||
你可以在遵照 GPLv3 协议的基础之上使用、修改及重新分发本程序。 | ||
*/ | ||
|
||
///=== { | ||
// ## link.Enable <命令名称> <链接名称> | ||
// 为指定的命令激活其中的超链接。如果有多个链接,可以用字符串列表来表达。 | ||
// }; | ||
#alias {link.Enable} { | ||
#local cmd {%1}; | ||
#local links {%2}; | ||
|
||
#if { "$cmd" == "" || "$links" == "" } { | ||
xtt.Usage %90; | ||
#return; | ||
}; | ||
|
||
#local link {}; | ||
#foreach {$links} {link} { | ||
#line sub var #sub {~\e[4m$link} {@mslp.Send{{$cmd $link};$link}}; | ||
}; | ||
}; |