mirror of
https://github.com/znc/znc.git
synced 2026-07-05 17:31:06 +02:00
Added GetTag()
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@223 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -23,6 +23,18 @@ CZNC::~CZNC() {
|
||||
DeleteUsers();
|
||||
}
|
||||
|
||||
string CZNC::GetTag(bool bIncludeVersion) {
|
||||
if (!bIncludeVersion) {
|
||||
return "ZNC - by prozac@gmail.com";
|
||||
}
|
||||
|
||||
char szBuf[32];
|
||||
memset(szBuf, 0, 32);
|
||||
snprintf(szBuf, 32, "ZNC %1.3f - by prozac@gmail.com", VERSION);
|
||||
|
||||
return szBuf;
|
||||
}
|
||||
|
||||
bool CZNC::OnBoot() {
|
||||
for (map<string,CUser*>::iterator it = m_msUsers.begin(); it != m_msUsers.end(); it++) {
|
||||
if (!it->second->OnBoot()) {
|
||||
|
||||
Reference in New Issue
Block a user