diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/application.cc | 7 | ||||
-rw-r--r-- | src/core/application.h | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/core/application.cc b/src/core/application.cc index c02db9b..3f08a36 100644 --- a/src/core/application.cc +++ b/src/core/application.cc @@ -348,12 +348,15 @@ void Application::connect(std::string const &host) if (!application_game->running()) { delete application_game; application_game = 0; + } else { + notify_connect(); } } else { application_game = new GameServer(); if (application_game->running()) { con_print << "^BConnected to local game.\n"; + notify_connect(); } else { delete application_game; application_game = 0; @@ -544,4 +547,8 @@ void Application::notify_disconnect() } +void Application::notify_connect() +{ +} + } diff --git a/src/core/application.h b/src/core/application.h index 3769941..9ac82f7 100644 --- a/src/core/application.h +++ b/src/core/application.h @@ -75,6 +75,9 @@ public: /// zone clear notification virtual void notify_zoneclear(Zone *zone); + /// connect notification + virtual void notify_connect(); + /// disconnect notification virtual void notify_disconnect(); |