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