mirror of
https://github.com/znc/znc.git
synced 2026-05-07 05:44:41 +02:00
Micro-Optimizations
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1639 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+1
-3
@@ -335,9 +335,7 @@ void CClient::UserCommand(CString& sLine) {
|
||||
return;
|
||||
}
|
||||
|
||||
const vector<CServer*>& vServers = m_pUser->GetServers();
|
||||
|
||||
if (vServers.size() <= 0) {
|
||||
if (!m_pUser->HasServers()) {
|
||||
PutStatus("You don't have any servers added.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -213,7 +213,7 @@ public:
|
||||
unsigned int GetBufferCount() const;
|
||||
bool KeepBuffer() const;
|
||||
bool IsBeingDeleted() const { return m_bBeingDeleted; }
|
||||
bool HasServers() const { return m_vServers.size() > 0; }
|
||||
bool HasServers() const { return !m_vServers.empty(); }
|
||||
float GetTimezoneOffset() const { return m_fTimezoneOffset; }
|
||||
unsigned long long BytesRead() const { return m_uBytesRead; }
|
||||
unsigned long long BytesWritten() const { return m_uBytesWritten; }
|
||||
|
||||
Reference in New Issue
Block a user