Fixed userinfo finding user by tag
This commit is contained in:
parent
a954720ebd
commit
d87cb6cbaf
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ public class UserinfoCommand extends DiscordCommandBase {
|
||||||
target = message.getMentions().get(0);
|
target = message.getMentions().get(0);
|
||||||
else if (args.contains("#")) {
|
else if (args.contains("#")) {
|
||||||
String[] targettag = args.split("#");
|
String[] targettag = args.split("#");
|
||||||
final List<IUser> targets = getUsers(message, args);
|
final List<IUser> targets = getUsers(message, targettag[0]);
|
||||||
if (targets.size() == 0) {
|
if (targets.size() == 0) {
|
||||||
DiscordPlugin.sendMessageToChannel(message.getChannel(), "The user cannot be found (by name): " + args);
|
DiscordPlugin.sendMessageToChannel(message.getChannel(), "The user cannot be found (by name): " + args);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue