mirror of
https://github.com/znc/znc.git
synced 2026-05-09 06:44:40 +02:00
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:
+5
-5
@@ -289,7 +289,7 @@ public:
|
||||
|
||||
private:
|
||||
void Process(const CNick& Nick, const CString& sMessage, const CString& sSource) {
|
||||
for (list<CWatchEntry>::iterator it = m_lsWatchers.begin(); it != m_lsWatchers.end(); it++) {
|
||||
for (list<CWatchEntry>::iterator it = m_lsWatchers.begin(); it != m_lsWatchers.end(); ++it) {
|
||||
CWatchEntry& WatchEntry = *it;
|
||||
|
||||
if (WatchEntry.IsMatch(Nick, sMessage, sSource, m_pUser)) {
|
||||
@@ -306,7 +306,7 @@ private:
|
||||
|
||||
void SetDisabled(unsigned int uIdx, bool bDisabled) {
|
||||
if (uIdx == (unsigned int) ~0) {
|
||||
for (list<CWatchEntry>::iterator it = m_lsWatchers.begin(); it != m_lsWatchers.end(); it++) {
|
||||
for (list<CWatchEntry>::iterator it = m_lsWatchers.begin(); it != m_lsWatchers.end(); ++it) {
|
||||
(*it).SetDisabled(bDisabled);
|
||||
}
|
||||
|
||||
@@ -478,7 +478,7 @@ private:
|
||||
CWatchEntry WatchEntry(sHostMask, sTarget, sPattern);
|
||||
|
||||
bool bExists = false;
|
||||
for (list<CWatchEntry>::iterator it = m_lsWatchers.begin(); it != m_lsWatchers.end(); it++) {
|
||||
for (list<CWatchEntry>::iterator it = m_lsWatchers.begin(); it != m_lsWatchers.end(); ++it) {
|
||||
if (*it == WatchEntry) {
|
||||
sMessage = "Entry for [" + WatchEntry.GetHostMask() + "] already exists.";
|
||||
bExists = true;
|
||||
@@ -505,7 +505,7 @@ private:
|
||||
|
||||
void Save() {
|
||||
ClearNV(false);
|
||||
for (list<CWatchEntry>::iterator it = m_lsWatchers.begin(); it != m_lsWatchers.end(); it++) {
|
||||
for (list<CWatchEntry>::iterator it = m_lsWatchers.begin(); it != m_lsWatchers.end(); ++it) {
|
||||
CWatchEntry& WatchEntry = *it;
|
||||
CString sSave;
|
||||
|
||||
@@ -530,7 +530,7 @@ private:
|
||||
|
||||
bool bWarn = false;
|
||||
|
||||
for (MCString::iterator it = BeginNV(); it != EndNV(); it++) {
|
||||
for (MCString::iterator it = BeginNV(); it != EndNV(); ++it) {
|
||||
VCString vList;
|
||||
it->first.Split("\n", vList);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user