Added some helper functions

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@455 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2005-08-02 17:44:46 +00:00
parent dc33b862a7
commit 7cb1d2f958
2 changed files with 13 additions and 2 deletions
+9 -1
View File
@@ -19,7 +19,7 @@ CZNC::CZNC() {
#endif
m_uListenPort = 0;
m_bISpoofLocked = false;
m_sISpoofFormat = "global { reply \"%\" }";
SetISpoofFormat(""); // Set ISpoofFormat to default
}
CZNC::~CZNC() {
@@ -1015,7 +1015,15 @@ bool CZNC::ParseConfig(const CString& sConfig) {
return true;
}
void CZNC::ClearVHosts() {
m_vsVHosts.clear();
}
bool CZNC::AddVHost(const CString& sHost) {
if (sHost.empty()) {
return false;
}
for (unsigned int a = 0; a < m_vsVHosts.size(); a++) {
if (m_vsVHosts[a].CaseCmp(sHost) == 0) {
return false;