Commit graph

36 commits

Author SHA1 Message Date
jesopo
4dba22d70b add "--depends-on commands" hashflag to permissions module 2019-12-01 09:48:03 +00:00
jesopo
cdfbf6f002 utils.irc.parse_hostmask -> utils.irc.hostmask_parse 2019-11-30 20:30:54 +00:00
jesopo
d688636909 rework permissions module to precompile hostmasks 2019-11-30 19:32:38 +00:00
jesopo
dd65cb5b05 hook in to private messages for checking hostmask perms 2019-11-30 19:13:03 +00:00
jesopo
e56e2d3e48 WHOX can effect hostmask permissions too 2019-11-26 18:45:13 +00:00
jesopo
d216ce3345 check hostmask on WHO too 2019-11-26 18:42:27 +00:00
jesopo
14c30c4c05 add check.command.permission and check.command.authenticated callbacks 2019-11-26 15:32:24 +00:00
jesopo
3935bf3a30 IRCUser.get_identified_account() doesn't exist anymore 2019-11-22 11:50:23 +00:00
jesopo
090d46720a also set _account_override when registering 2019-11-21 16:53:27 +00:00
jesopo
0d13725ab7 check part of array, not whole array, for "*" 2019-11-21 16:36:06 +00:00
jesopo
50d12e7e1f implement master-password/master-login in permissions module 2019-11-21 16:31:23 +00:00
jesopo
dea29c5d5b authenticated is expected to be a boolean 2019-11-21 16:19:43 +00:00
jesopo
2dfc55fb9f refactor permissions and allow hostmasks to be assigned to accounts 2019-11-21 15:49:08 +00:00
jesopo
9f8c5acf52 add a way to execute commands through bitbotd (use for master-password) 2019-11-21 10:39:26 +00:00
jesopo
1e1eeb9b7f only FORCE_SUCCESS for masterlogin when there's a permissions requirement 2019-10-09 14:29:25 +01:00
jesopo
2e80b223de allow all preprocess.command and check.command failures to have a message 2019-09-26 12:14:55 +01:00
jesopo
4bfb4c3200 Add IntRangeSetting, reorder OptionsSetting arg order 2019-08-30 14:40:54 +01:00
jesopo
b4c762eb4e Automatically format example text for OptionsSetting (showing options) 2019-06-29 21:33:26 +01:00
jesopo
756396d758 Implement utils.OptionsSetting 2019-06-28 23:26:42 +01:00
jesopo
ae9d099a41 Refactor set/channelset/serverset/botset in to 'utils.Setting' objects 2019-06-28 23:16:05 +01:00
jesopo
29b15da179 Switch all 'hook.kwargs.get(' calls to 'hook.get_kwarg(' 2019-06-26 10:59:52 +01:00
jesopo
f05fc209b0 Add a way to __or__ utils.Checks, as a "if one of these passes" thing 2019-06-14 12:01:55 +01:00
jesopo
f7f476e40b Remove empty _random_string declaration 2019-05-30 17:27:48 +01:00
jesopo
0e6bcb5af0 Hex-encode master passwords, instead of b64, to avoid "strange" chars 2019-05-30 17:25:24 +01:00
jesopo
268c5adb3c Add depends-on hashflags to relevant modules 2019-05-25 21:40:06 +01:00
jesopo
9f2881323f Only show register/identify advice when we're using internal auth 2019-05-23 10:39:24 +01:00
jesopo
cf29c37112 Add usage examples for all settings 2019-05-23 10:28:14 +01:00
jesopo
a031402c1d Add masterpassword private-only command 2019-05-21 12:18:59 +01:00
jesopo
5dd337a92e Move master-password generation out to it's own function 2019-05-21 12:17:01 +01:00
jesopo
9ac7ead57e Make masterlogin passwords one-time-use 2019-04-24 17:37:44 +01:00
jesopo
f60deba6c7 Add a master-admin login system, to have a bot-wide password to give any user
using it complete admin permissions - mostly intended to add new admin users
2019-04-15 14:52:08 +01:00
jesopo
e12ad21c1a Add/remove people from channels before received.join/received.part events 2019-04-15 14:41:09 +01:00
jesopo
dc7cdf31d0 Use '&lt;' for '<' in README (permissions) 2019-02-17 14:29:50 +00:00
jesopo
5809ff8490 Add section about identifying (permissions README.md) 2019-02-17 14:28:59 +00:00
jesopo
9f2c501df6 Typo, 'BitBo' -> 'BitBot' (permissions) 2019-02-17 14:27:56 +00:00
jesopo
ec49140a70 Move permissions.py in to a directory and add a README.md for it 2019-02-17 14:26:18 +00:00