Stuff
public text v1 · immutableIndex: AccountMgr.cpp
===================================================================
--- AccountMgr.cpp (revision 5483)
+++ AccountMgr.cpp (working copy)
@@ -41,6 +41,8 @@
if(username.length() > 16)
return 1; // username's too long
+ std::transform( username.begin(), username.end(), username.begin(), ::toupper );
+
loginDatabase.escape_string(username);
QueryResult *result = loginDatabase.PQuery("SELECT 1 FROM account WHERE username='%s'", username.c_str());
if(result)