Implement message modes for 9.6

Fix possible crash when closing otclient
Fix private messages
Fix messages in 9.6
This commit is contained in:
Eduardo Bart
2012-07-30 09:29:13 -03:00
parent 1281b04a6a
commit 59b6abfa09
22 changed files with 95 additions and 42 deletions

View File

@@ -41,7 +41,10 @@ Connection::Connection() :
Connection::~Connection()
{
assert(!g_app.isTerminated());
#ifndef NDEBUG
if(g_app.isTerminated())
g_logger.warning("Connection reference not released");
#endif
close();
}

View File

@@ -33,7 +33,10 @@ Protocol::Protocol()
Protocol::~Protocol()
{
assert(!g_app.isTerminated());
#ifndef NDEBUG
if(g_app.isTerminated())
g_logger.warning("Protocol reference not released");
#endif
disconnect();
}