    if(g_hash_table_lookup(room->moderator, jid_full(user)) != NULL )
    {
      log_debug(NAME, "[%s] Is Moderator? >%s< - Moderator", FZONE, jid_full(user));
-@@ -295,6 +340,61 @@
+@@ -295,6 +340,75 @@
      return 1;
    }
  

+    /* Is king of the current race */
+    n = snprintf(query, sizeof(query) - 1, "select id from perso "
+		 "where replace(nom, ' ', '_') = '%s' and "
+		 "race = '%s' and rang_royaume = 6",
+		 user->user, room->name);
+    
+    log_debug(NAME, "[%s] query is {%s}, n is %d",
+	      FZONE, query, n);

   if(g_hash_table_lookup(room->admin, ujid) != NULL )
     return 1;
   else if(g_hash_table_lookup(room->admin, user->server) != NULL )
@@ -232,6 +253,31 @@
     return 2;
   }
 
