Commit 3b9506a3 authored by Colomban Wendling's avatar Colomban Wendling

LibOVCCClient: make Client.login() take a password too

parent c505c551
......@@ -126,14 +126,16 @@ namespace OVCCClient
* Logins on the server
* @param nick The nick with which log in
* @param password The password with which log in
* @param cancellable a Cancellable object or null
* @return whether login succeeded
public async bool login (string nick,
string password = "",
Cancellable? cancellable = null)
throws ServerError, IOError
yield server.login_to (nick, "patate", cancellable);
yield server.login_to (nick, password, cancellable);
player = new Player (nick);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment