Fix ban reason being set to the banned user's username
This commit is contained in:
parent
f6828a24ad
commit
e4a00ceedc
|
@ -36,7 +36,7 @@ export function banFormHandler(event: Event): void {
|
||||||
|
|
||||||
if (checkbox && checkbox.checked) {
|
if (checkbox && checkbox.checked) {
|
||||||
data['ban'] = '1';
|
data['ban'] = '1';
|
||||||
data['reason'] = form.elements['user'].value;
|
data['reason'] = form.elements['reason'].value;
|
||||||
|
|
||||||
if (!permaCheckbox.checked) {
|
if (!permaCheckbox.checked) {
|
||||||
data['duration'] = form.elements['duration'].value.trim();
|
data['duration'] = form.elements['duration'].value.trim();
|
||||||
|
|
Loading…
Reference in New Issue