From 6ae7745c15d4564db86b3eaab0b90b7cd973604d Mon Sep 17 00:00:00 2001 From: prozacx Date: Sun, 29 Jan 2006 04:33:45 +0000 Subject: [PATCH] Added a return so you don't get double error messages git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@600 726aef4b-f618-498e-8847-2d620e286838 --- modules/autoop.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/autoop.cpp b/modules/autoop.cpp index 40a49eb7..ee602729 100644 --- a/modules/autoop.cpp +++ b/modules/autoop.cpp @@ -167,7 +167,7 @@ public: if (Channel.HasPerm(CChan::Op)) { // If we have ops in this chan for (map::iterator it = m_msUsers.begin(); it != m_msUsers.end(); it++) { if (it->second->HostMatches(Nick.GetHostMask()) && it->second->ChannelMatches(Channel.GetName())) { // and the nick who joined is a valid user - m_msQueue[Nick.GetNick().AsLower()] = ""; // then insert this nick into the queue + m_msQueue[Nick.GetNick().AsLower()] = ""; // then insert this nick into the queue } } } @@ -436,6 +436,7 @@ public: return true; } else { PutModule("WARNING! [" + Nick.GetNick() + "] sent a bad response. Please verify that you have their correct password."); + return false; } } }