Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 25704481 authored by echicken's avatar echicken 🐔

Added block-sender call

parent 1f3b9383
...@@ -12,9 +12,7 @@ load(settings.web_lib + 'forum.js'); ...@@ -12,9 +12,7 @@ load(settings.web_lib + 'forum.js');
var reply = {}; var reply = {};
// There must be an API call, and the user must not be a guest or unknown // There must be an API call, and the user must not be a guest or unknown
if ((http_request.method === 'GET' || http_request.method === 'POST') && if (http_request.query.call !== undefined && (http_request.method === 'GET' || http_request.method === 'POST')) {
typeof http_request.query.call !== 'undefined'
) {
var handled = false; var handled = false;
...@@ -152,6 +150,14 @@ if ((http_request.method === 'GET' || http_request.method === 'POST') && ...@@ -152,6 +150,14 @@ if ((http_request.method === 'GET' || http_request.method === 'POST') &&
} }
break; break;
case 'block-sender':
if (user.is_sysop) {
if (http_request.query.from) addTwit(decodeURIComponent(http_request.query.from[0]));
if (http_request.query.from_net) addTwit(decodeURIComponent(http_request.query.from_net[0]));
reply.err = null;
}
break;
default: default:
handled = false; handled = false;
break; break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment