mirror of
https://github.com/znc/znc.git
synced 2026-06-26 21:12:03 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user