File tree Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 20
20
#return;
21
21
};
22
22
23
- #if { "@InitLog{$user[id]}" != "true" } {
24
- #echo {<110>创建日志目录 $gLog[PATH]/$user[id] 时遇到错误。<070>};
23
+ #local log-path {$user[id]};
24
+ #if { "$session[log_path]" != "" } {
25
+ #local log-path {$session[log_path]};
26
+ };
27
+
28
+ #if { "@InitLog{$log-path}" != "true" } {
29
+ #echo {<110>创建日志目录 $gLog[PATH]/$log-path 时遇到错误。<070>};
25
30
#echo {<130>请检查你的安装环境,或者参考使用手册重新安装本软件。<070>};
26
31
#return;
27
32
};
Original file line number Diff line number Diff line change @@ -30,6 +30,10 @@ mudlib.Set {pkuxkx};
30
30
#var session[reconnect_slow] 600; #nop 维护模式下的间隔;
31
31
#var session[remote_maint] false; #nop 维护模式开关;
32
32
33
+ #nop 日志相对路径,留空则使用 user[id] 的值;
34
+ #nop 如果有同一个 ID 连接不同站点的需求,就应当在 ID 配置文件里定制它;
35
+ #var session[log_path] {};
36
+
33
37
#nop 可以通过触发来开启维护模式;
34
38
#action {^%*(%*)告诉你:开启远程维护$} {#var session[remote_maint] {true}};
35
39
Original file line number Diff line number Diff line change 24
24
#var user[passwd] bar;
25
25
26
26
#nop XXX: 所有 ids/DEFAULT 里的内容都可以在这里定制;
27
+ #nop 这里为了简单起见没有全部列出,如有更多需求请参考 ids/DEFAULT 定制;
27
28
28
29
#nop 用户上线之后想要自动执行的代码写这里;
29
30
#alias {user-online} {
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ mudlib.Set thuxyj;
29
29
#var user[passwd] bar;
30
30
31
31
#nop XXX: 所有 ids/DEFAULT 里的内容都可以在这里定制;
32
+ #nop 这里为了简单起见没有全部列出,如有更多需求请参考 ids/DEFAULT 定制;
32
33
33
34
#nop 用户上线之后想要自动执行的代码写这里;
34
35
#alias {user-online} {
You can’t perform that action at this time.
0 commit comments