commit 2616aa9ff4771bef401dd3ce7d44ac20d6e3dccd
parent 025f8c9b95c63865497de78941db764ca8f238ce
Author: Dominik Schmidt <das1993@hotmail.com>
Date: Fri, 26 Jan 2018 13:16:32 +0000
Let the user specify the irc server on the command line
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/bot.d b/src/bot.d
@@ -210,7 +210,6 @@ struct Bot{
}
void initialize(){
- ircAddress=getAddress("irc.freenode.net",6697)[0];
auto af=ircAddress.addressFamily;
ircSocket=new SslSocket(af);
ircClient=new IrcClient(ircSocket);
@@ -493,6 +492,7 @@ int main(string[] args){
Bot b=Bot(args[1]);
b.proxy_url=args[2];
b.controlPath=args[3];
+ b.ircAddress=getAddress(args[4],args[5].to!ushort)[0];
b.initialize();
if(exists("savefile")){
auto f=File("savefile", "r");