Skip to content

Commit

Permalink
Fix #17
Browse files Browse the repository at this point in the history
  • Loading branch information
xmamo committed Oct 20, 2016
1 parent d482508 commit 40bfcbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>mamo</groupId>
<artifactId>VanillaVotifier</artifactId>
<version>4.0</version>
<version>4.0.1</version>
<dependencies>
<dependency>
<groupId>org.jetbrains</groupId>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/mamo/vanillaVotifier/VanillaVotifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,10 @@ public void onEvent(@NotNull Event event) {
}
} else if (args[0].equals("showkey")) {
if (args.length == 2) {
if (args[2].equals("pub") || args[2].equals("public")) {
if (args[1].equals("pub") || args[1].equals("public")) {
votifier.getLogger().println(RsaUtils.keyToString(votifier.getConfig().getKeyPair().getPublic()));
continue;
} else if (args[2].equals("priv") || args[2].equals("private")) {
} else if (args[1].equals("priv") || args[1].equals("private")) {
votifier.getLogger().println(RsaUtils.keyToString(votifier.getConfig().getKeyPair().getPrivate()));
continue;
}
Expand Down

0 comments on commit 40bfcbe

Please sign in to comment.