Committing patches from crox/psychon

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@790 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2007-03-12 06:26:54 +00:00
parent 9541fa2492
commit 0a62274975
27 changed files with 432 additions and 145 deletions
+14 -1
View File
@@ -117,6 +117,19 @@ public:
PutModule(sMsg);
}
} else if (sCommand.Token(0).CaseCmp("SHOW") == 0) {
if (m_pUser) {
CString sExpanded = GetAwayNick();
CString sMsg = "AwayNick is set to [" + m_sFormat + "]";
if (m_sFormat != sExpanded) {
sMsg += " (" + sExpanded + ")";
}
PutModule(sMsg);
}
} else if(sCommand.Token(0).CaseCmp("HELP") == 0) {
PutModule("Commands are: show, timers, set [awaynick]");
}
}
@@ -125,7 +138,7 @@ public:
CIRCSock* pIRCSock = m_pUser->GetIRCSock();
if (pIRCSock) {
pIRCSock->GetMaxNickLen();
uLen = pIRCSock->GetMaxNickLen();
}
return m_pUser->ExpandString(m_sFormat).Left(uLen);