Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/org/minima/system/commands/maxima/maxima.java
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ public static Message createSendMessage(String zFullTo, String zApplication, Min
//Send a message..
String fullto = zFullTo;
int indexp = fullto.indexOf("@");
int index = fullto.indexOf(":");
int index = fullto.lastIndexOf(":");

//Get the Public Key
String publickey = fullto.substring(0,indexp);
Expand Down
2 changes: 1 addition & 1 deletion src/org/minima/system/commands/network/connect.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public JSONObject runCommand() throws Exception {

public static Message createConnectMessage(String zFullHost) {
//IP and PORT
int index = zFullHost.indexOf(":");
int index = zFullHost.lastIndexOf(":");
if(index == -1) {
return null;
}
Expand Down