aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authoronefang2020-03-17 12:41:47 +1000
committeronefang2020-03-17 12:41:47 +1000
commit7c11a87766b08b7d3b3856225e54277dfe51f8d4 (patch)
tree0e9a006e15c22135c814e5d9b9a4d7f03a4b3da2 /src
parentTODO++ (diff)
downloadopensim-SC-7c11a87766b08b7d3b3856225e54277dfe51f8d4.zip
opensim-SC-7c11a87766b08b7d3b3856225e54277dfe51f8d4.tar.gz
opensim-SC-7c11a87766b08b7d3b3856225e54277dfe51f8d4.tar.bz2
opensim-SC-7c11a87766b08b7d3b3856225e54277dfe51f8d4.tar.xz
Add a ToS block.
Diffstat (limited to 'src')
-rw-r--r--src/.sledjChisl.conf.lua27
-rw-r--r--src/sledjchisl/sledjchisl.c2
2 files changed, 29 insertions, 0 deletions
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 =
22 ["idleTimeOut"] = 24 * 60 * 60; -- seconds 22 ["idleTimeOut"] = 24 * 60 * 60; -- seconds
23 ["newbieTimeOut"] = 30; -- days 23 ["newbieTimeOut"] = 30; -- days
24 ["pepper"] = "My long beard is salt and pepper coloured, though there are no birds in it, only breakfast."; 24 ["pepper"] = "My long beard is salt and pepper coloured, though there are no birds in it, only breakfast.";
25 ["ToS"] = [[
26
27Don't do anything that is illegal anywhere in the world.
28
29Well, that wont work, almost everything is illegal somewhere in the
30world.
31
32Don't do anything that is against the moral code of the system admins.
33
34Well, except that one thing, you know, that they'll put up with coz they
35are nice people, but it's wrong m'kay.
36
37Don't be mean to anyone, except Dave, coz he smells evil.
38
39Well, it's not that Dave smells evil, he's just differently fragranced,
40and our overwashed germophobe society is well trained to demonize those
41that smell differently. So be extra nice to Dave, coz he's a great guy,
42and is tired of everyone being mean to him just coz he's trying to be
43good for the environment and his health. Which means he smells different
44to whatever perfume is fashionable this year, coz the corporations want
45to sell that this year. I blame marketing, they're actually evil.
46Sorry, went off on a rant there.
47
48Oh just respect and be nice to everyone dammit, unless they ask nicely
49otherwise. Also be good for the environment and stay healthy.
50
51]];
25} 52}
26return config 53return 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";
462char *Tcmd = "tmux -S"; 462char *Tcmd = "tmux -S";
463char *webRoot = "/opt/opensim_SC/web"; 463char *webRoot = "/opt/opensim_SC/web";
464char *URL = "fcgi-bin/sledjchisl.fcgi"; 464char *URL = "fcgi-bin/sledjchisl.fcgi";
465char *ToS = "Be good.";
465int seshTimeOut = 30 * 60; 466int seshTimeOut = 30 * 60;
466int idleTimeOut = 24 * 60 * 60; 467int idleTimeOut = 24 * 60 * 60;
467int newbieTimeOut = 30; 468int newbieTimeOut = 30;
@@ -4454,6 +4455,7 @@ jit library is loaded or the JIT compiler will not be activated.
4454 if ((vd = configs->get (configs, "seshTimeOut", NULL, false)) != NULL) {seshTimeOut = (int) *((float *) vd); D("Setting seshTimeOut = %d", seshTimeOut);} 4455 if ((vd = configs->get (configs, "seshTimeOut", NULL, false)) != NULL) {seshTimeOut = (int) *((float *) vd); D("Setting seshTimeOut = %d", seshTimeOut);}
4455 if ((vd = configs->get (configs, "idleTimeOut", NULL, false)) != NULL) {idleTimeOut = (int) *((float *) vd); D("Setting idleTimeOut = %d", idleTimeOut);} 4456 if ((vd = configs->get (configs, "idleTimeOut", NULL, false)) != NULL) {idleTimeOut = (int) *((float *) vd); D("Setting idleTimeOut = %d", idleTimeOut);}
4456 if ((vd = configs->get (configs, "newbieTimeOut", NULL, false)) != NULL) {newbieTimeOut = (int) *((float *) vd); D("Setting newbieTimeOut = %d", newbieTimeOut);} 4457 if ((vd = configs->get (configs, "newbieTimeOut", NULL, false)) != NULL) {newbieTimeOut = (int) *((float *) vd); D("Setting newbieTimeOut = %d", newbieTimeOut);}
4458 if ((tmp = configs->getstr(configs, "ToS", false)) != NULL) {ToS = tmp; D("Setting ToS = %s", ToS);}
4457 4459
4458 4460
4459 if (isTmux || isWeb) 4461 if (isTmux || isWeb)