feat: hidden servers

This commit is contained in:
ChomeNS
2025-03-05 10:47:27 +07:00
parent 4e37021b50
commit bb766652f6
17 changed files with 58 additions and 50 deletions

View File

@@ -360,8 +360,11 @@ public class Bot {
session.connect(false);
}
public String getServerString () {
return host + ":" + port;
public String getServerString () { return getServerString(false); }
public String getServerString (boolean bypassHidden) {
return options.hidden && !bypassHidden ?
options.serverName :
host + ":" + port;
}
public void stop () {