/* ================================================================================ | | | Alex "Y_Less" Cole's server logging system v0.4 | | ------------------------------------------------- | | | | Features/ changelog: | | | | v0.4: | | - Changed commads: | | skip1 = skipc | | skip2 = skipp | | add1 = addc | | add2 = addp | | - Added callbacks OnPlayerRequestSpawn and OnPlayerPrivMsg | | | | v0.3: | | - Added commands: | | /ylog + | | skip1 - list skipped commands | | skip2 - list skipped parameter commands | | add1 - add a skipped command | | add2 - add a skipped parameter command | | reset - reload te settings from file | | saveset - save the settings to file | | settings - list the settings | | callback - toggle recording of the selected callback | | savedelay - set the save delay | | expand - toggle expansion of saved parameters | | dailysave - toggle new files every day | | - Autosaves when the last player leaves (fix for OnFilterScriptExit) | | - Fixed a bug with save delays of 0 | | - Rewrote some of the settings file load code to be more flexible | | - Added parameter expansion option, gives some text with numeric parameters | | - Removed autosave on first player connect | | | | v0.2: | | - Automatic saving (default every hour) | | - Settings controlled through a cfg file (ylog.cfg) | | - Optional exclusion of any callbacks | | - Automatic creation of settings file on the first run | | | | v0.1: | | - Logging of standard filterscript callbacks and parameters | | - Optional exclusion of certain commands or parameter (for login security) | | - Optional new file every day | | - Commands: | | /ylog + | | save - saves the log file | | exit - shuts down the logging system | | | ================================================================================ */ #include #include #include