From: pk910 Date: Wed, 2 Nov 2011 01:23:08 +0000 (+0100) Subject: don't try to rename an auth account if it didn't really change (host mask change) X-Git-Tag: v5.3~218 X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=commitdiff_plain;h=b9d871cb043613c9cc449da845d7731931a7f6d7 don't try to rename an auth account if it didn't really change (host mask change) --- diff --git a/src/DBHelper.c b/src/DBHelper.c index 43b984b..a629e3d 100644 --- a/src/DBHelper.c +++ b/src/DBHelper.c @@ -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;