X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fcl_client.qc;h=89647d5be241eae4bb2d68944adea631942a16fc;hp=b73d74754d9b2a31aa77162e98453d557c9c61b8;hb=77f03e6ce033bef39ac19e0e7cb6e606ffcb26db;hpb=7d1d7d64a791f5566057275f5797119f56bf644c diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index b73d74754d..89647d5be2 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -1016,6 +1016,27 @@ float PlayerInIDList(entity p, string idlist) return 0; } +#ifdef DP_EXT_PRECONNECT +/* +============= +ClientPreConnect + +Called once (not at each match start) when a client begins a connection to the server +============= +*/ +void ClientPreConnect (void) +{ + if(autocvar_sv_eventlog) + { + GameLogEcho(sprintf(":connect:%d:%d:%s", + self.playerid, + num_for_edict(self), + ((IS_REAL_CLIENT(self)) ? self.netaddress : "bot") + )); + } +} +#endif + /* ============= ClientConnect