ReloadChat does just what the name says. It reloads your chat log to what it showed before whenever you ReloadUI(), re-log, or log on to another character. The number of saved messages is based on the limit of your chat log (default 128).
Special thanks to all of the comments people left to make this version better, especially Vladinator for telling me that saved variables do get saved when reloading your user interface or being disconnected.
This version supports:
What to expect in the future:
More efficient code (always expected)
Options for which types of chat you wish to save
Support for all other chat mods (This may already be true, but I havn't tested it since I use the default Blizzard chat log)
Any other requests made in the comments tab
I encourage everybody to leave suggestions/errors in the comments tab.
0.0.3 Updated TOC
0.0.2 More efficient code. Possibly some bug fixes
0.0.1r2 This update has more efficient code and uses saved variables as opposed to CVars. This allows the chat to be saved not only when reloading the UI and when relogging, but also when disconnected by the server (not the WoW window crashing). There was limited testing before this release, but seeing that the code is simple, there shouldn't be any errors.
0.0.0r1 This was the first release displaying the basic concept behind saving the chat.