Created
February 11, 2011 23:48
-
-
Save m4tm4t/823286 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef _DatabasePostgre_H | |
LoginDatabase.PExecute("INSERT INTO account_banned VALUES ('%u',round(date_part('epoch',now())),round(date_part('epoch',now()))+'%u','MaNGOS realmd','Failed login autoban',1)",acc_id, WrongPassBanTime); | |
#else | |
LoginDatabase.PExecute("INSERT INTO account_banned VALUES ('%u',UNIX_TIMESTAMP(),UNIX_TIMESTAMP()+'%u','MaNGOS realmd','Failed login autoban',1)",acc_id, WrongPassBanTime); | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment