From 7c11a87766b08b7d3b3856225e54277dfe51f8d4 Mon Sep 17 00:00:00 2001 From: onefang Date: Tue, 17 Mar 2020 12:41:47 +1000 Subject: Add a ToS block. --- src/.sledjChisl.conf.lua | 27 +++++++++++++++++++++++++++ src/sledjchisl/sledjchisl.c | 2 ++ 2 files changed, 29 insertions(+) (limited to 'src') diff --git a/src/.sledjChisl.conf.lua b/src/.sledjChisl.conf.lua index 849a203..bc04835 100644 --- a/src/.sledjChisl.conf.lua +++ b/src/.sledjChisl.conf.lua @@ -22,5 +22,32 @@ config = ["idleTimeOut"] = 24 * 60 * 60; -- seconds ["newbieTimeOut"] = 30; -- days ["pepper"] = "My long beard is salt and pepper coloured, though there are no birds in it, only breakfast."; + ["ToS"] = [[ + +Don't do anything that is illegal anywhere in the world. + +Well, that wont work, almost everything is illegal somewhere in the +world. + +Don't do anything that is against the moral code of the system admins. + +Well, except that one thing, you know, that they'll put up with coz they +are nice people, but it's wrong m'kay. + +Don't be mean to anyone, except Dave, coz he smells evil. + +Well, it's not that Dave smells evil, he's just differently fragranced, +and our overwashed germophobe society is well trained to demonize those +that smell differently. So be extra nice to Dave, coz he's a great guy, +and is tired of everyone being mean to him just coz he's trying to be +good for the environment and his health. Which means he smells different +to whatever perfume is fashionable this year, coz the corporations want +to sell that this year. I blame marketing, they're actually evil. +Sorry, went off on a rant there. + +Oh just respect and be nice to everyone dammit, unless they ask nicely +otherwise. Also be good for the environment and stay healthy. + +]]; } return config diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index 6ec3b98..a895c51 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c @@ -462,6 +462,7 @@ char *Ttab = "SC"; char *Tcmd = "tmux -S"; char *webRoot = "/opt/opensim_SC/web"; char *URL = "fcgi-bin/sledjchisl.fcgi"; +char *ToS = "Be good."; int seshTimeOut = 30 * 60; int idleTimeOut = 24 * 60 * 60; int newbieTimeOut = 30; @@ -4454,6 +4455,7 @@ jit library is loaded or the JIT compiler will not be activated. if ((vd = configs->get (configs, "seshTimeOut", NULL, false)) != NULL) {seshTimeOut = (int) *((float *) vd); D("Setting seshTimeOut = %d", seshTimeOut);} if ((vd = configs->get (configs, "idleTimeOut", NULL, false)) != NULL) {idleTimeOut = (int) *((float *) vd); D("Setting idleTimeOut = %d", idleTimeOut);} if ((vd = configs->get (configs, "newbieTimeOut", NULL, false)) != NULL) {newbieTimeOut = (int) *((float *) vd); D("Setting newbieTimeOut = %d", newbieTimeOut);} + if ((tmp = configs->getstr(configs, "ToS", false)) != NULL) {ToS = tmp; D("Setting ToS = %s", ToS);} if (isTmux || isWeb) -- cgit v1.1