Skip to content
This repository has been archived by the owner on Jul 27, 2019. It is now read-only.

Commit

Permalink
Minor fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
cnaude committed Jun 24, 2015
1 parent 6c93030 commit 15c7d3b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/com/cnaude/purpleirc/CommandHandlers.java
Expand Up @@ -129,11 +129,11 @@ public boolean onCommand(CommandSender sender, Command cmd, String commandLabel,
}
}
} else if (commandLabel.equalsIgnoreCase("msg")) {
if (!sender.hasPermission("irc.smsg")) {
sender.sendMessage(plugin.noPermission);
return true;
}
if (args.length >= 1) {
if (!sender.hasPermission("irc.smsg")) {
sender.sendMessage(plugin.noPermission);
return true;
}
ArrayList<String> list = new ArrayList<>();
list.add("smsg");
list.addAll(Arrays.asList(args));
Expand Down

0 comments on commit 15c7d3b

Please sign in to comment.