Skip to content
Snippets Groups Projects
Commit 25704481 authored by echicken's avatar echicken :chicken:
Browse files

Added block-sender call

parent 1f3b9383
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -12,9 +12,7 @@ load(settings.web_lib + 'forum.js');
var reply = {};
// 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') &&
typeof http_request.query.call !== 'undefined'
) {
if (http_request.query.call !== undefined && (http_request.method === 'GET' || http_request.method === 'POST')) {
var handled = false;
......@@ -152,6 +150,14 @@ if ((http_request.method === 'GET' || http_request.method === 'POST') &&
}
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:
handled = false;
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment