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() {
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);