[mIRCStats parser configuration file] // File information (these lines are shown in mIRCStats) [File Description] Exchange Chat (READ NOTES!) [Author] Ave // --------------------------------------------------------------------------- // NOTE 1 // mIRCStats v1.20 doesn't handle the "4/22/03 9:58 [START ]" line correctly // because it starts exactly like the timestamp line. mIRCStats doesn't parse // Date from timestamp line, this is why the date is not parsed from this line either. // // Here's a workaround how you can analyze your logs before mIRCStats parser is // improved to handle this situation: You need to modify the first [START ] line // in your log to be like this: // // [START ]4/22/03 9:58 [START ] // (The extra [START ] added to the beginning of the line) // // This parser file can extract log start date from that line. // NOTE 2 // Also, channelname extraction from line that contains nothing more than channelname // gives some problems, because mIRCStats accepts any word as channelname. If channelname // parsing rule would be just %channelname%, when processing for example a line // "4/22/03 12:21 [MESSAGE]Paul_Mentor" it would parse "[MESSAGE]Paul_Mentor" // out as the channelname, because that matches the rule (timestamp is parsed out // before handling the rest of the line). // // This is why I use channelname parsing rule // #%channelname% // which causes the channelname to appear without prefixing "#". // // I'll add optional checking to mIRCStats for accepting the %channelname% contents // that it must start with one of the accepted characters. // --------------------------------------------------------------------------- // Allowed variables are: // // Single-word variables: // %nick%, %nick2%, %addr%, %channelname%, %monthname%, %ampm%, %anyword% // // Numeric variables: // %hour%, %minute%, %second%, // %day%, %month%, %year%, %anynum% // // Multi-word variables (only one allowed per line): // %text%, %mode%, %anytext% // Main rules: // - Variables have to be delimited by some non-variable characters like [%hour%:%minute%] // (unless they are fixed length ones like %2hour% (2-digit numeric hour). // - You can only use one multi-word variable per line. // - Don't use the same variable multiple times on any line. // - Use "Test Parser" option to verify your new parsing rules ("Log parser"-settings page). // - Check mIRCStats help for more info ("Setting options/Log parser") // ----------------Parser configuration rules start here------------------------------- // timestamp parsing rules: [timestamp] %month%/%day%/%year% %hour%:%minute% // Parsing patterns in order of probability: [Normal line] [MESSAGE]%nick% %text% [Action] [Mode change] [Join] [ENTERS ]%nick% [Part] [LEAVES ]%nick% [Quit] [QUIT ]%nick% [Session Start] %month%/%day%/%year% %hour%:%minute% [START ] [START ]%month%/%day%/%year% %hour%:%minute% [START ] [Session Close] %month%/%day%/%year% %hour%:%minute% [STOP ] [Session Time] [Own normal line] [Channelname] #%channelname% [Rename] [Topic change] [TOPIC ]%nick% %text% [Kick] [Skip]