Added GetTag()

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@223 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2005-05-01 20:28:26 +00:00
parent 43e170313e
commit c2d926630f
2 changed files with 13 additions and 0 deletions
+12
View File
@@ -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()) {