Skip to content

Instantly share code, notes, and snippets.

@m4tm4t
Created February 11, 2011 23:48
Show Gist options
  • Save m4tm4t/823286 to your computer and use it in GitHub Desktop.
Save m4tm4t/823286 to your computer and use it in GitHub Desktop.
#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