-/* cmd_global_command.c - NeonServ v5.2
- * Copyright (C) 2011 Philipp Kreil (pk910)
+/* cmd_global_command.c - NeonServ v5.3
+ * 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
char *ident;
MYSQL_RES *res;
MYSQL_ROW row;
- struct cmd_binding *cbind = find_cmd_binding(client->botid, argv[0]);
+ struct cmd_binding *cbind = find_botwise_cmd_binding(client->botid, client->clientid, argv[0]);
if (!cbind) {
reply(getTextBot(), user, "NS_UNBIND_NOT_FOUND", argv[0]);
return;
*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);