Commit f17edee8 authored by JC Brand's avatar JC Brand

Bugfix. Should be possible to kick/ban/etc without providing a reason

parent 89ef9a18
......@@ -871,7 +871,8 @@ converse.plugins.add('converse-muc-views', {
return;
}
const nick_or_jid = references.pop().value;
if (!args.split(nick_or_jid, 2)[1].startsWith(' ')) {
const reason = args.split(nick_or_jid, 2)[1];
if (reason && !reason.startsWith(' ')) {
this.showErrorMessage(__("Error: couldn't find a groupchat participant based on your arguments"));
return;
}
......
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