Cleaned up more warnings.

This commit is contained in:
baines
2013-02-27 20:53:14 -05:00
parent c256116d81
commit 82a708d6a1
13 changed files with 38 additions and 39 deletions

View File

@@ -66,7 +66,7 @@ void CClient::UserCommand(CString& sLine) {
CIRCSock* pIRCSock = m_pNetwork->GetIRCSock();
const CString& sPerms = (pIRCSock) ? pIRCSock->GetPerms() : "";
if (!msNicks.size()) {
if (msNicks.empty()) {
PutStatus("No nicks on [" + sChan + "]");
return;
}
@@ -414,7 +414,7 @@ void CClient::UserCommand(CString& sLine) {
CIRCSock* pIRCSock = pNetwork->GetIRCSock();
const CString& sPerms = (pIRCSock) ? pIRCSock->GetPerms() : "";
if (!vChans.size()) {
if (vChans.empty()) {
PutStatus("There are no channels defined.");
return;
}
@@ -831,7 +831,7 @@ void CClient::UserCommand(CString& sLine) {
set<CModInfo> ssUserMods;
CZNC::Get().GetModules().GetAvailableMods(ssUserMods);
if (!ssUserMods.size()) {
if (ssUserMods.empty()) {
PutStatus("No user modules available.");
} else {
PutStatus("User modules:");
@@ -853,7 +853,7 @@ void CClient::UserCommand(CString& sLine) {
set<CModInfo> ssNetworkMods;
CZNC::Get().GetModules().GetAvailableMods(ssNetworkMods, CModInfo::NetworkModule);
if (!ssNetworkMods.size()) {
if (ssNetworkMods.empty()) {
PutStatus("No network modules available.");
} else {
PutStatus("Network modules:");