diff options
author | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2007-12-30 21:07:04 +0000 |
---|---|---|
committer | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2007-12-30 21:07:04 +0000 |
commit | 751783a2aae1ba9f41cce197ed8dc72651056706 (patch) | |
tree | 2b86792f44b75543650fd90f190828b73da94a98 /src/mysql.c | |
parent | 568cec7bade13d7306da2482d43c28e3614c0ab6 (diff) |
BUILD : 1.7.20 (1328) BUGS : 812 NOTES : Fixed a bug where multiple grouped nicks and not all of them listed in ServicesRoot could result in services roots not becoming services root when using MySQL
git-svn-id: svn://svn.anope.org/anope/trunk@1328 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1044 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/mysql.c')
-rw-r--r-- | src/mysql.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mysql.c b/src/mysql.c index 434caa981..568dc7a99 100644 --- a/src/mysql.c +++ b/src/mysql.c @@ -1742,6 +1742,10 @@ int db_mysql_load_ns_dbase(void) if (nc->flags & NI_SERVICES_OPER) slist_add(&servopers, nc); + /* Unset the SERVICES_ROOT flag; we will set it again later if this + * user is really a services root (checked per NickAlias) -GD + */ + nc->flags &= ~NI_SERVICES_ROOT; /* Get info from other tables; we'll need the display */ q_display = db_mysql_quote(nc->display); @@ -1847,8 +1851,7 @@ int db_mysql_load_ns_dbase(void) /* Assign to the nickcore aliases */ slist_add(&na->nc->aliases, na); - /* Make sure the SERVICES_ROOT flag is only set for services roots */ - na->nc->flags &= ~NI_SERVICES_ROOT; + /* Check if this user is a services root */ for (i = 0; i < RootNumber; i++) { if (stricmp(ServicesRoots[i], na->nick) == 0) na->nc->flags |= NI_SERVICES_ROOT; |