mirror of
https://github.com/moparisthebest/Yaaic
synced 2025-02-16 15:00:14 -05:00
Use server password on connect if defined
This commit is contained in:
parent
bfd67da5b9
commit
16a89c9417
@ -68,7 +68,11 @@ public class IRCBinder extends Binder
|
||||
connection.setIdent(server.getIdentity().getIdent());
|
||||
connection.setRealName(server.getIdentity().getRealName());
|
||||
|
||||
connection.connect(server.getHost(), server.getPort());
|
||||
if (server.getPassword() != "") {
|
||||
connection.connect(server.getHost(), server.getPort(), server.getPassword());
|
||||
} else {
|
||||
connection.connect(server.getHost(), server.getPort());
|
||||
}
|
||||
}
|
||||
catch (NickAlreadyInUseException e) {
|
||||
Log.d(TAG, "NickAlreadyInUseException: " + e.getMessage());
|
||||
|
Loading…
Reference in New Issue
Block a user