made commands op, deop, opall, deopall, voice, devoice, voiceall, devoiceall a little...
[NeonServV5.git] / src / cmd_global_commands.c
index 426be8b8ddd509821b4ddbc61cbd7267c7d0116a..b6cb01eb8fb74d5543c28d1327559eb84aaf1a24 100644 (file)
@@ -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);