I successfully added, the option:
Add in admin.xml (under settings)
<set name="sufficient_acces_warn">0</set>
Replace in admin.py
Line 269 (old)
if event.client.authed and event.client.maxLevel < self.config.getint('settings', 'admins_level'):
Line 269 (new)
if event.client.authed and event.client.maxLevel < self.config.getint('settings', 'admins_level') and self.config.getint('settings', 'sufficient_acces_warn') == 1:
-----------
Line 280 (old)
event.client.message(self.getMessage('unknown_command', cmd))
Line 280 & 281 + 282 + 283(new)
if event.client.maxLevel > self.config.getint('settings', 'admins_level') and self.config.getint('settings', 'sufficient_acces_warn') == 1:
event.client.message(self.getMessage('unknown_command', cmd))
elif event.client.maxLevel > self.config.getint('settings', 'admins_level'): event.client.message(self.getMessage('unknown_command', cmd))
--------
313 (will be 314)(old)
if event.client.maxLevel < self.config.getint('settings', 'admins_level'):
314 (new)
if event.client.maxLevel < self.config.getint('settings', 'admins_level') and self.config.getint('settings', 'sufficient_acces_warn') == 1:
--------
327 (old)
event.client.message('^7You do not have sufficient access to use %s%s' % (self.cmdPrefix, cmd))
327 + 328 (new)
elif self.config.getint('settings', 'sufficient_acces_warn') == 1:
event.client.message('^7You do not have sufficient access to use %s%s' % (self.cmdPrefix, cmd))
What will this do?
If a client don't have access to a command b3 will not react on it,
if the command also does not exist then b3 will not respond,
except if the client is an admin.
1 = on (like original b3),
0 = off (customized)
I uploaded also the modified admin.py from 1.3.3 wich i have changed with this new option.
Greets,
kikker916
P.S.
i hope the b3 development team,
will maybe add this or simular.
in the next b3 release,
[attachment deleted by maintenance]