summaryrefslogtreecommitdiff
path: root/src/mysql.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mysql.c')
-rw-r--r--src/mysql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mysql.c b/src/mysql.c
index 96899be44..64a9988de 100644
--- a/src/mysql.c
+++ b/src/mysql.c
@@ -1853,7 +1853,7 @@ int db_mysql_load_ns_dbase(void)
/* Make sure the SERVICES_ROOT flag is only set for services roots */
na->nc->flags &= ~NI_SERVICES_ROOT;
for (i = 0; i < RootNumber; i++) {
- if (stricmp(ServicesRoots[i], na->nick))
+ if (stricmp(ServicesRoots[i], na->nick) == 0)
na->nc->flags |= NI_SERVICES_ROOT;
}