--- deliantra/server/socket/init.C 2009/11/03 23:44:21 1.63 +++ deliantra/server/socket/init.C 2010/04/12 05:22:38 1.67 @@ -1,7 +1,7 @@ /* * This file is part of Deliantra, the Roguelike Realtime MMORPG. * - * Copyright (©) 2005,2006,2007,2008,2009 Marc Alexander Lehmann / Robin Redeker / the Deliantra team + * Copyright (©) 2005,2006,2007,2008,2009,2010 Marc Alexander Lehmann / Robin Redeker / the Deliantra team * * Deliantra is free software: you can redistribute it and/or modify it under * the terms of the Affero GNU General Public License as published by the @@ -148,7 +148,8 @@ socket_ev.start (); // initialisation done, kick it! - send_packet_printf ("version %d %d %s\n", VERSION_CS, VERSION_SC, VERSION_INFO); + INVOKE_CLIENT (CONNECT, this); + flush (); reset_stats (); @@ -169,6 +170,7 @@ void client::do_destroy () { + INVOKE_CLIENT (CLIENT_DESTROY, this); attachable::do_destroy (); if (pl) @@ -223,8 +225,9 @@ client::create (int fd, const char *peername) { client *ns = new client (dup (fd), peername); + ns->instantiate (); // effectively a nop right now - INVOKE_CLIENT (CONNECT, ns); + return ns; }