Another patch by DarthGandalf, thanks

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1777 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2010-02-19 17:06:42 +00:00
parent 20e8465b60
commit d2931d289a
15 changed files with 77 additions and 77 deletions
+5 -5
View File
@@ -24,7 +24,7 @@ public:
MCString::iterator it2;
// Load saved settings
for (it2 = BeginNV(); it2 != EndNV(); it2++) {
for (it2 = BeginNV(); it2 != EndNV(); ++it2) {
// Ignore errors
Block(it2->first);
}
@@ -32,7 +32,7 @@ public:
// Parse arguments, each argument is a user name to block
sArgs.Split(" ", vArgs, false);
for (it = vArgs.begin(); it != vArgs.end(); it++) {
for (it = vArgs.begin(); it != vArgs.end(); ++it) {
if (!Block(*it)) {
sMessage = "Could not block [" + *it + "]";
return false;
@@ -65,7 +65,7 @@ public:
Table.AddColumn("Blocked user");
for (it = BeginNV(); it != EndNV(); it++) {
for (it = BeginNV(); it != EndNV(); ++it) {
Table.AddRow();
Table.SetCell("Blocked user", it->first);
}
@@ -99,7 +99,7 @@ public:
private:
bool IsBlocked(const CString& sUser) {
MCString::iterator it;
for (it = BeginNV(); it != EndNV(); it++) {
for (it = BeginNV(); it != EndNV(); ++it) {
if (sUser.Equals(it->first)) {
return true;
}
@@ -116,7 +116,7 @@ private:
// Disconnect all clients
vector<CClient*>& vpClients = pUser->GetClients();
vector<CClient*>::iterator it;
for (it = vpClients.begin(); it != vpClients.end(); it++) {
for (it = vpClients.begin(); it != vpClients.end(); ++it) {
(*it)->PutStatusNotice(MESSAGE);
(*it)->Close(Csock::CLT_AFTERWRITE);
}