added "nowho" parameter to debug userlist and fixed memory leak in DBHelper.c
[NeonServV5.git] / src / cmd_global_commands.c
index 426be8b8ddd509821b4ddbc61cbd7267c7d0116a..caeac9781c642982e1caaf09103d2d32093f583f 100644 (file)
@@ -78,7 +78,7 @@ CMD_BIND(global_cmd_commands) {
     for(i = 0; i < table->entrys; i++) {
         reply(getTextBot(), user, table_lines[i]);
     }
-    
+    table_free(table);
 }
 
 static int global_cmd_commands_sort(const void *a, const void *b) {
@@ -109,6 +109,10 @@ static int global_cmd_commands_chanaccess(struct cmd_binding *cbind, struct Chan
                 *str_b = '\0';
                 str_b++;
             }
+            if(*str_a == '@' || *str_a == '+') {
+                //privs can override this access requirement
+                str_a++;
+            }
             if(*str_a == '#') {
                 str_a++;
                 access_pos += sprintf(access_list+access_pos, (access_pos ? ", `%s`" : "`%s`"), str_a);