mirror of
git://git.psyced.org/git/psyced
synced 2024-08-15 03:25:10 +00:00
/style unset & save
This commit is contained in:
parent
58bcc84430
commit
c2aa52adfa
2 changed files with 7 additions and 5 deletions
|
@ -2324,9 +2324,13 @@ _request_kick(source, mc, data, vars, b) {
|
||||||
_request_set_style(source, mc, data, vars, b) {
|
_request_set_style(source, mc, data, vars, b) {
|
||||||
if (qOwner(SNICKER)) {
|
if (qOwner(SNICKER)) {
|
||||||
string value = vars["_uniform_style"] || vars["_value"];
|
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);
|
vSet("_uniform_style", value);
|
||||||
else if (value) {
|
save();
|
||||||
|
} else if (value) {
|
||||||
sendmsg(source,
|
sendmsg(source,
|
||||||
"_error_illegal_scheme",
|
"_error_illegal_scheme",
|
||||||
"That is not a valid [_scheme] URL for a file.",
|
"That is not a valid [_scheme] URL for a file.",
|
||||||
|
|
|
@ -5,9 +5,6 @@
|
||||||
#include <status.h>
|
#include <status.h>
|
||||||
#include <lastlog.h>
|
#include <lastlog.h>
|
||||||
|
|
||||||
#define PLACE_HISTORY
|
|
||||||
#define _limit_amount_history_persistent 0
|
|
||||||
|
|
||||||
#ifndef DEFAULT_BACKLOG
|
#ifndef DEFAULT_BACKLOG
|
||||||
# define DEFAULT_BACKLOG 10
|
# define DEFAULT_BACKLOG 10
|
||||||
#endif
|
#endif
|
||||||
|
@ -567,6 +564,7 @@ htget(prot, query, headers, qs, data) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// don't know if this works, needs to be tested
|
||||||
void nntpget(string cmd, string args) {
|
void nntpget(string cmd, string args) {
|
||||||
array(mixed) entry, entries;
|
array(mixed) entry, entries;
|
||||||
mapping vars;
|
mapping vars;
|
||||||
|
|
Loading…
Reference in a new issue