diff options
author | onefang | 2020-03-17 12:41:47 +1000 |
---|---|---|
committer | onefang | 2020-03-17 12:41:47 +1000 |
commit | 7c11a87766b08b7d3b3856225e54277dfe51f8d4 (patch) | |
tree | 0e9a006e15c22135c814e5d9b9a4d7f03a4b3da2 /src | |
parent | TODO++ (diff) | |
download | opensim-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.lua | 27 | ||||
-rw-r--r-- | src/sledjchisl/sledjchisl.c | 2 |
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 | |||
27 | Don't do anything that is illegal anywhere in the world. | ||
28 | |||
29 | Well, that wont work, almost everything is illegal somewhere in the | ||
30 | world. | ||
31 | |||
32 | Don't do anything that is against the moral code of the system admins. | ||
33 | |||
34 | Well, except that one thing, you know, that they'll put up with coz they | ||
35 | are nice people, but it's wrong m'kay. | ||
36 | |||
37 | Don't be mean to anyone, except Dave, coz he smells evil. | ||
38 | |||
39 | Well, it's not that Dave smells evil, he's just differently fragranced, | ||
40 | and our overwashed germophobe society is well trained to demonize those | ||
41 | that smell differently. So be extra nice to Dave, coz he's a great guy, | ||
42 | and is tired of everyone being mean to him just coz he's trying to be | ||
43 | good for the environment and his health. Which means he smells different | ||
44 | to whatever perfume is fashionable this year, coz the corporations want | ||
45 | to sell that this year. I blame marketing, they're actually evil. | ||
46 | Sorry, went off on a rant there. | ||
47 | |||
48 | Oh just respect and be nice to everyone dammit, unless they ask nicely | ||
49 | otherwise. Also be good for the environment and stay healthy. | ||
50 | |||
51 | ]]; | ||
25 | } | 52 | } |
26 | return config | 53 | 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"; | |||
462 | char *Tcmd = "tmux -S"; | 462 | char *Tcmd = "tmux -S"; |
463 | char *webRoot = "/opt/opensim_SC/web"; | 463 | char *webRoot = "/opt/opensim_SC/web"; |
464 | char *URL = "fcgi-bin/sledjchisl.fcgi"; | 464 | char *URL = "fcgi-bin/sledjchisl.fcgi"; |
465 | char *ToS = "Be good."; | ||
465 | int seshTimeOut = 30 * 60; | 466 | int seshTimeOut = 30 * 60; |
466 | int idleTimeOut = 24 * 60 * 60; | 467 | int idleTimeOut = 24 * 60 * 60; |
467 | int newbieTimeOut = 30; | 468 | int 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) |