From 1eb2ed2d3f7e1a900ec1b8ade9725d9f1aa5d19e Mon Sep 17 00:00:00 2001 From: crs Date: Mon, 23 Dec 2002 14:49:14 +0000 Subject: [PATCH] No longer sending options if there aren't any and no longer sending a reset before sending options (the caller can do that if necessary). --- lib/server/CServer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/server/CServer.cpp b/lib/server/CServer.cpp index 78d1c633..e08db389 100644 --- a/lib/server/CServer.cpp +++ b/lib/server/CServer.cpp @@ -1582,7 +1582,7 @@ CServer::sendOptions(IClient* client) const // look up options for client. we're done if there aren't any. const CConfig::CScreenOptions* options = m_config.getOptions(client->getName()); - if (options == NULL) { + if (options == NULL || options->size() == 0) { return; } @@ -1596,7 +1596,6 @@ CServer::sendOptions(IClient* client) const } // send the options - client->resetOptions(); client->setOptions(optionsList); }