/style unset & save

This commit is contained in:
Gabor Adam Toth 2010-02-28 01:04:19 +01:00
parent 58bcc84430
commit c2aa52adfa
2 changed files with 7 additions and 5 deletions

View File

@ -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.",

View 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;