mirror of
https://github.com/znc/znc.git
synced 2026-05-07 22:04:46 +02:00
Add Show command to identfile.
It should help us to debug that annoying bug of identfile aborting connections...
This commit is contained in:
committed by
Kyle Fuller
parent
8f1027d646
commit
ffabb169c1
@@ -25,6 +25,7 @@ public:
|
||||
AddCommand("GetFormat", static_cast<CModCommand::ModCmdFunc>(&CIdentFileModule::GetFormat));
|
||||
AddCommand("SetFormat", static_cast<CModCommand::ModCmdFunc>(&CIdentFileModule::SetFormat),
|
||||
"<format>");
|
||||
AddCommand("Show", static_cast<CModCommand::ModCmdFunc>(&CIdentFileModule::Show));
|
||||
}
|
||||
|
||||
virtual ~CIdentFileModule() {
|
||||
@@ -51,6 +52,14 @@ public:
|
||||
PutModule("Format would be expanded to: " + m_pUser->ExpandString(GetNV("Format")));
|
||||
}
|
||||
|
||||
void Show(const CString& sLine) {
|
||||
PutModule("m_pISpoofLockFile = " + CString((long long)m_pISpoofLockFile));
|
||||
PutModule("m_pIRCSock = " + CString((long long)m_pIRCSock));
|
||||
if (m_pIRCSock) {
|
||||
PutModule("user = " + m_pIRCSock->GetUser()->GetUserName());
|
||||
}
|
||||
}
|
||||
|
||||
void OnModCommand(const CString& sCommand) {
|
||||
if (m_pUser->IsAdmin()) {
|
||||
HandleCommand(sCommand);
|
||||
|
||||
Reference in New Issue
Block a user