added "nowho" parameter to debug userlist and fixed memory leak in DBHelper.c
[NeonServV5.git] / src / cmd_global_commands.c
index 9d4e15c7afca5869d1da1f58857f67d885c00e54..caeac9781c642982e1caaf09103d2d32093f583f 100644 (file)
@@ -1,5 +1,5 @@
 /* cmd_global_commands.c - NeonServ v5.3
- * Copyright (C) 2011  Philipp Kreil (pk910)
+ * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -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);