Fix CUser::IsUserAttached().

It honored only clients connected without any network.

Thanks to Cronus` for reporting this.
This commit is contained in:
Alexey Sokolov
2011-09-25 02:35:37 +07:00
parent 4b1e7143c3
commit ceeebf746b
2 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ public:
bool PutModule(const CString& sModule, const CString& sLine, CClient* pClient = NULL, CClient* pSkipClient = NULL);
bool PutModNotice(const CString& sModule, const CString& sLine, CClient* pClient = NULL, CClient* pSkipClient = NULL);
bool IsUserAttached() const { return !m_vClients.empty(); }
bool IsUserAttached() const;
void UserConnected(CClient* pClient);
void UserDisconnected(CClient* pClient);