Commit dff0f153 authored by Colomban Wendling's avatar Colomban Wendling
Browse files

Allow to pass host and port as arguments to the bot

parent e8ee49a3
......@@ -154,9 +154,19 @@ OVCCClient.Server server = null;
public int main (string[] args)
{
var host = "localhost";
uint16 port = 0xdead;
if (args.length > 1) {
host = args[1];
}
if (args.length > 2) {
port = (uint16)int.parse (args[2]);
}
loop = new MainLoop ();
bot = new Bot (loop);
server = new OVCCClient.Server ("localhost", 0xdead);
server = new OVCCClient.Server (host, port);
#if HAVE_POSIX
setup_signal_handlers ();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment