Merge commit 'refs/pull/304/head' of github.com:znc/znc

This commit is contained in:
Alexey Sokolov
2013-02-28 09:33:32 +07:00
19 changed files with 53 additions and 54 deletions
+3 -3
View File
@@ -47,7 +47,7 @@ protected:
class CPartylineMod : public CModule {
public:
void ListChannelsCommand(const CString& sLine) {
if (!m_ssChannels.size()) {
if (m_ssChannels.empty()) {
PutModule("There are no open channels.");
return;
}
@@ -89,7 +89,7 @@ public:
}
}
while (m_ssChannels.size()) {
while (!m_ssChannels.empty()) {
delete *m_ssChannels.begin();
m_ssChannels.erase(m_ssChannels.begin());
}
@@ -174,7 +174,7 @@ public:
CPartylineChannel *pChan = *it;
// RemoveUser() might delete channels, so make sure our
// iterator doesn't break.
it++;
++it;
RemoveUser(&User, pChan, "KICK", "User deleted", true);
}