From 02d25517b9e620a075358b373ae06d74b68a87d4 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Sat, 25 Mar 2023 14:17:55 +0200 Subject: [PATCH] Client - `doAuth()` now takes in a default argument `doAuth(string = "bogus.net")` --- source/birchwood/client/client.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/birchwood/client/client.d b/source/birchwood/client/client.d index bd97bc2..de90643 100644 --- a/source/birchwood/client/client.d +++ b/source/birchwood/client/client.d @@ -829,7 +829,7 @@ public class Client : Thread } } - private void doAuth() + private void doAuth(string servername = "bogus.net") { Thread.sleep(dur!("seconds")(2)); nick(connInfo.nickname); @@ -837,7 +837,7 @@ public class Client : Thread Thread.sleep(dur!("seconds")(2)); // TODO: Note I am making hostname the same as username always (is this okay?) // TODO: Note I am making the servername always bogus.net - user(connInfo.username, connInfo.username, "bogus.net", connInfo.realname); + user(connInfo.username, connInfo.username, servername, connInfo.realname); } public void user(string username, string hostname, string servername, string realname)