  char * _sql_escape_string(MYSQL * mysql, char * str, char * buffer, int limit) {
 diff -r -u jabberd2-muc-0.8.0/src/utils.c jabberd2-muc-0.8.0.sso/src/utils.c
 --- jabberd2-muc-0.8.0/src/utils.c	2007-11-10 11:19:05.000000000 +0100
-+++ jabberd2-muc-0.8.0.sso/src/utils.c	2009-07-12 21:29:08.000000000 +0200
++++ jabberd2-muc-0.8.0.sso/src/utils.c	2009-07-29 14:52:55.000000000 +0200
 @@ -209,6 +209,27 @@
    if(is_owner(room, user))
      return 2;

+		if (!strcmp(room->name, "admin")) {
+			// Cas du chan des admins/modo
+			n = snprintf(query, sizeof(query) - 1, "select statut from jabber_admin "
+							 "where nom = '%s'", user->user);
+			
+			log_debug(NAME, "[%s] query is {%s}, n is %d",
+								FZONE, query, n);

+		
+		// Cas général
+		n = snprintf(query, sizeof(query) - 1, "select id from perso "
+								 "where race = '%s' and replace(nom, ' ', '_') = '%s'",
+								 room->name, user->user);
+		
+		log_debug(NAME, "[%s] query is {%s}, n is %d",
