Fix automatic unban when user login with Warcraft 3 https://github.com/HarpyWar/pvpgn/issues/27

Extract duplicated code for output author, time, reason into a function