Use server password on connect if defined
This commit is contained in:
parent
bfd67da5b9
commit
16a89c9417
|
@ -68,8 +68,12 @@ public class IRCBinder extends Binder
|
||||||
connection.setIdent(server.getIdentity().getIdent());
|
connection.setIdent(server.getIdentity().getIdent());
|
||||||
connection.setRealName(server.getIdentity().getRealName());
|
connection.setRealName(server.getIdentity().getRealName());
|
||||||
|
|
||||||
|
if (server.getPassword() != "") {
|
||||||
|
connection.connect(server.getHost(), server.getPort(), server.getPassword());
|
||||||
|
} else {
|
||||||
connection.connect(server.getHost(), server.getPort());
|
connection.connect(server.getHost(), server.getPort());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch (NickAlreadyInUseException e) {
|
catch (NickAlreadyInUseException e) {
|
||||||
Log.d(TAG, "NickAlreadyInUseException: " + e.getMessage());
|
Log.d(TAG, "NickAlreadyInUseException: " + e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue