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

This commit is contained in:
JC Brand 2019-07-04 08:13:47 +02:00
parent 89ef9a18c4
commit f17edee827

View File

@ -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;
}