Implementation
List<String> get mentions {
List<String> _l = [];
if (bodyFucked) return _l;
_l.add(nick);
var bd = body.trim().replaceAll("\n", " ");
var bs = bd.split(" ");
bs.forEach((element) {
if (element.startsWith('@')) {
var td = element.trim().split(' ');
if (td.first.endsWith(')')) return;
if (td.first.endsWith(']')) return;
if (td.first.endsWith(',')) {
_l.add(td[0].substring(1, td[0].length - 1));
return;
}
if (td.first.endsWith('.')) {
_l.add(td[0].substring(1, td[0].length - 1));
return;
}
_l.add(td[0].substring(1, td[0].length));
}
});
return _l;
}