Skip to content
This repository has been archived by the owner on Jun 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #5 from condolent/develop
Browse files Browse the repository at this point in the history
Fixed voice channel protection
  • Loading branch information
jonteohr authored Jun 12, 2020
2 parents c01b1c6 + bbdce82 commit f0e1ae1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.jonteohr.discord</groupId>
<artifactId>guardian</artifactId>
<version>1.0.3_10</version>
<version>1.0.3_12</version>

<name>guardian</name>
<!-- FIXME change it to the project's website -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ public void onGuildMessageReceived(GuildMessageReceivedEvent e) {
// Create the channel name
String name = "";
for(int i = 2; i < args.length; i++) {
name = name + " " + args[i];
if(i == args.length - 1) {
name = name + args[i];
break;
}
name = name + args[i] + " ";
}

// No channel mentioned and not a voice channel
Expand Down

0 comments on commit f0e1ae1

Please sign in to comment.