mirror of
https://github.com/ChronosX88/psyced.git
synced 2024-11-08 19:41:00 +00:00
/style unset & save
This commit is contained in:
parent
58bcc84430
commit
c2aa52adfa
@ -2324,9 +2324,13 @@ _request_kick(source, mc, data, vars, b) {
|
||||
_request_set_style(source, mc, data, vars, b) {
|
||||
if (qOwner(SNICKER)) {
|
||||
string value = vars["_uniform_style"] || vars["_value"];
|
||||
if (value && (value = legal_url(value, "http")))
|
||||
if (value == "-") {
|
||||
vDel("_uniform_style", value);
|
||||
save();
|
||||
} else if (value && (value = legal_url(value, "http"))) {
|
||||
vSet("_uniform_style", value);
|
||||
else if (value) {
|
||||
save();
|
||||
} else if (value) {
|
||||
sendmsg(source,
|
||||
"_error_illegal_scheme",
|
||||
"That is not a valid [_scheme] URL for a file.",
|
||||
|
@ -5,9 +5,6 @@
|
||||
#include <status.h>
|
||||
#include <lastlog.h>
|
||||
|
||||
#define PLACE_HISTORY
|
||||
#define _limit_amount_history_persistent 0
|
||||
|
||||
#ifndef DEFAULT_BACKLOG
|
||||
# define DEFAULT_BACKLOG 10
|
||||
#endif
|
||||
@ -567,6 +564,7 @@ htget(prot, query, headers, qs, data) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
// don't know if this works, needs to be tested
|
||||
void nntpget(string cmd, string args) {
|
||||
array(mixed) entry, entries;
|
||||
mapping vars;
|
||||
|
Loading…
Reference in New Issue
Block a user