Merge TMB's and paulej72's undo mod code. My code was based on the undoModeration sub that is used to undo all a users mods in a single discussion. As such it was just a bit cleaner due to using some fancy SQL to get the min and maxes. I made both Unspam and Unmod use the new code and just added a wrapper to call the full undoSingleModeration if only a mod id is given.
Merge TMB's and paulej72's undo mod code. My code was based on the undoModeration sub that is used to undo all a users mods in a single discussion. As such it was just a bit cleaner due to using some fancy SQL to get the min and maxes. I made both Unspam and Unmod use the new code and just added a wrapper to call the full undoSingleModeration if only a mod id is given.
plus some other bugs were fixed.