Commit graph

73 commits

Author SHA1 Message Date
jesopo
7c7ea653cf send_mode() args should be an array 2019-09-15 10:49:56 +01:00
jesopo
710caebbc4 _parse_flags() should always return 2 objects 2019-09-12 23:13:02 +01:00
jesopo
7094d94cd7 only apply modes for !flags when the user doesn't have them already 2019-09-12 22:40:23 +01:00
jesopo
1edb11ae1f _check_flags() when flags are changed 2019-09-12 22:40:06 +01:00
jesopo
5b538eb5b6 add !b as an alias of !ban 2019-09-12 22:20:36 +01:00
jesopo
2d7a192a6c limit !flags mode changes to 3-per-line, add comment as to why 2019-09-12 15:13:42 +01:00
jesopo
8ac0fce53f remove debug prints 2019-09-12 15:12:31 +01:00
jesopo
778cfe2010 remove extra ")" 2019-09-12 15:00:33 +01:00
jesopo
12fea0a38f sort uppercase chars after lowercase chars for !flags 2019-09-12 15:00:00 +01:00
jesopo
ad85536389 check a user is authenticated before applying modes, catch login too 2019-09-12 14:55:26 +01:00
jesopo
6b5e0791be first draft of !flags system 2019-09-12 14:29:28 +01:00
jesopo
1b44b58aca add !invite 2019-09-12 10:24:10 +01:00
jesopo
7fbb5b2823 don't use full event names to check what command we're in 2019-09-10 12:59:52 +01:00
jesopo
4bfb4c3200 Add IntRangeSetting, reorder OptionsSetting arg order 2019-08-30 14:40:54 +01:00
jesopo
0d9bd57332 copypaste name collision for channel_op.py's op function 2019-08-30 12:26:52 +01:00
jesopo
6e571fbe1a set channel_op.py _name to ChanOp 2019-08-14 15:08:17 +01:00
jesopo
f1dfbd112f switch !mute to use +1s duration format 2019-08-14 15:07:48 +01:00
jesopo
9bc1b67831 add configurable default kick message per bot/server/channel 2019-08-14 14:51:16 +01:00
jesopo
07a593ce20 !kickban's _ban call needs an add arg 2019-08-14 14:41:29 +01:00
jesopo
fa279aab93 refactor/rewrite channel_op.py, split highlight spam protection out 2019-08-14 14:38:47 +01:00
jesopo
c214d84643 'event' doesn't exist in _ban 2019-07-17 14:59:25 +01:00
jesopo
dc8c63c11b add ability to disable !mute for networks that dont support mutes 2019-07-10 08:57:08 +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
e0b7495ecc channel-only,require-mode,require-access -> channel_only,require_mode,require_access 2019-06-27 21:09:26 +01:00
jesopo
74befb18bc 'quiet' -> 'mute', add duration parameter 2019-06-27 20:52:32 +01:00
jesopo
1c5e1efecd add !quiet and !unquiet 2019-06-27 20:38:39 +01:00
jesopo
8ab4880c5c Change from yield checks to a func in events that pass up EventErrors 2019-06-15 18:42:14 +01:00
jesopo
229a45a491 Change prviate channel_access commands to use a "channel-access" yield check 2019-06-14 17:23:22 +01:00
jesopo
268c5adb3c Add depends-on hashflags to relevant modules 2019-05-25 21:40:06 +01:00
jesopo
cf29c37112 Add usage examples for all settings 2019-05-23 10:28:14 +01:00
jesopo
cb25f70418 Catch UserNotFoundException in var e 2019-05-08 07:36:17 +01:00
jesopo
bac9692ec5 Change channel_op's _name from "Channel Op" to "ChanOp" 2019-04-26 07:26:33 +01:00
jesopo
dc102f258d Add Database.servers.get_by_alias, move IRCBot.get_server to
IRCBot.get_server_by_id, add IRCBot.get_server_by_alias and change
!connect/!disconnect to take aliases instead of IDs
2019-04-24 12:07:30 +01:00
jesopo
186b6b82a2 Shift formatting protocol data to it's own file: utils.irc.protocol 2019-02-18 14:58:27 +00:00
jesopo
520d8b681f Actually add private_unban function def. oops. (channel_op.py) 2019-01-30 21:07:03 +00:00
jesopo
d2dbb0a249 Add private message unban command (channel_op.py) 2019-01-30 21:06:02 +00:00
jesopo
98e1d4460e Actually use channel arg in _kick_command (channel_op.py) 2019-01-30 21:03:21 +00:00
jesopo
8345ea36d4 Support kick and ban command in private message (channel_op.py) 2019-01-30 21:02:12 +00:00
jesopo
0c319be1e5 Correct usage help for kickban/tempkickban (channel_op.py) 2019-01-29 17:37:14 +00:00
jesopo
10b2ace653 Add require_access to commands on channel_op.py 2019-01-29 00:08:21 +00:00
jesopo
2816fe67bb Move channel tracking data/functions to src/IRCChannel.Channels 2018-11-11 12:34:22 +00:00
jesopo
44c67ad5d9 Typo in modules/channel_op, 'this' -> 'self' 2018-10-19 14:37:24 +01:00
jesopo
819f4e0680 Pass context-wrapped timers to each module, add ModuleManager.BaseModule.on_load 2018-10-12 18:07:23 +01:00
jesopo
376825ea96 Mark command hooks that are aliases ('g' vs 'google') 2018-10-10 10:42:41 +01:00
jesopo
18b227cbc4 Update modules/channel_op.py to use docstring prefix denotation 2018-10-04 11:05:43 +01:00
jesopo
02e76444d1 Add 'remove_empty' kwarg for commands, to strip out empty space 2018-10-03 17:01:10 +01:00
jesopo
69d58eede2 Move src/Utils.py in to src/utils/, splitting functionality out in to modules of
related functionality
2018-10-03 13:22:37 +01:00
jesopo
150788c6c6 Add !leave to modules/channel_op.py 2018-10-02 14:55:12 +01:00