0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

modules/s_listen: Start listener after loading iff run::level::RUN.

This commit is contained in:
Jason Volk 2019-03-17 15:29:15 -07:00
parent 21d8c9ce76
commit a9d8af1bf1

View file

@ -260,6 +260,10 @@ try
}; };
listeners.emplace_back(name, opts, client::create, _listener_proffer); listeners.emplace_back(name, opts, client::create, _listener_proffer);
if(ircd::run::level == ircd::run::level::RUN)
start(listeners.back());
return true; return true;
} }
catch(const std::exception &e) catch(const std::exception &e)