*** VERSION 5.3.0 ***
[NeonServV5.git] / src / DBHelper.c
index 43b984bae8b557b6d9941c6676e65ccb831254df..8e48fc0f57560081b6d2601f7dc2b584b1472aa8 100644 (file)
@@ -1,4 +1,4 @@
-/* DBHelper.c - NeonServ v5.2
+/* DBHelper.c - NeonServ v5.3
  * Copyright (C) 2011  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
@@ -267,6 +267,8 @@ static int event_user_registered(struct UserNode *old_user, struct UserNode *new
         strcpy(newauth, new_user->host);
         *p = '.';
     }
+    if(!stricmp(oldauth, newauth))
+        return 0;
     //check if we know this user; then check the new auth
     MYSQL_RES *res;
     MYSQL_ROW row;