diff --git a/base/web/space.go b/base/web/space.go index 5ff64f90..e71534c6 100644 --- a/base/web/space.go +++ b/base/web/space.go @@ -117,8 +117,7 @@ func _space_fork(m *ice.Message) { case SERVER: defer gdb.EventDeferEvent(m, SPACE_OPEN, args)(SPACE_CLOSE, args) m.Go(func() { - m.Cmd(SPACE, name, cli.PWD, name, kit.Dict( - mdb.TIME, ice.Info.Make.Time, nfs.MODULE, ice.Info.Make.Module, nfs.VERSION, ice.Info.Make.Versions(), AGENT, "Go-http-client", cli.SYSTEM, runtime.GOOS)) + m.Cmd(SPACE, name, cli.PWD, name, kit.Dict(mdb.TIME, ice.Info.Make.Time, nfs.MODULE, ice.Info.Make.Module, nfs.VERSION, ice.Info.Make.Versions(), AGENT, "Go-http-client", cli.SYSTEM, runtime.GOOS)) m.Cmd(SPACE).Table(func(value ice.Maps) { if kit.IsIn(value[mdb.TYPE], WORKER) && value[mdb.NAME] != name { m.Cmd(SPACE, value[mdb.NAME], gdb.EVENT, gdb.HAPPEN, gdb.EVENT, OPS_SERVER_OPEN, args, kit.Dict(ice.MSG_USERROLE, aaa.TECH)) diff --git a/core/chat/header.go b/core/chat/header.go index 70baea37..755ec448 100644 --- a/core/chat/header.go +++ b/core/chat/header.go @@ -79,7 +79,7 @@ func init() { aaa.AVATAR: {Hand: _header_users}, aaa.BACKGROUND: {Hand: _header_users}, aaa.THEME: {Hand: func(m *ice.Message, arg ...string) { - if tcp.IsLocalHost(m, m.Option(ice.MSG_USERIP)) { + if len(arg) > 0 && arg[0] != ice.AUTO && tcp.IsLocalHost(m, m.Option(ice.MSG_USERIP)) { cli.TellApp(m, "System Events", `tell appearance preferences to set dark mode to `+ kit.Select(ice.TRUE, ice.FALSE, kit.IsIn(kit.Select(html.LIGHT, arg, 0), html.LIGHT, html.WHITE))) }