From b9d871cb043613c9cc449da845d7731931a7f6d7 Mon Sep 17 00:00:00 2001 From: pk910 Date: Wed, 2 Nov 2011 02:23:08 +0100 Subject: [PATCH] don't try to rename an auth account if it didn't really change (host mask change) --- src/DBHelper.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.20.1