Commit graph

83 commits

Author SHA1 Message Date
jesopo
ddc70a6bd9 add !cmute/!cunmute to set +m/-m on current channel 2019-10-25 18:30:57 +01:00
jesopo
4157574516 show $n/$u/$h for ban-format-account help too 2019-10-08 15:08:16 +01:00
jesopo
d6fa786806 !k should be alias_of !kick 2019-09-26 14:06:47 +01:00
jesopo
0e5b14fb47 reference mask_split, not s 2019-09-24 15:57:23 +01:00
jesopo
9c591ca8dc don't throw when account name is null 2019-09-24 15:52:31 +01:00
jesopo
70bc244864 switch ban-format-account from a serverset to channelset 2019-09-24 15:50:54 +01:00
jesopo
682914dce1 support having a separate ban format for users with accounts 2019-09-24 15:47:33 +01:00
jesopo
f59b161fbd use ban-format for mute masks 2019-09-24 15:39:31 +01:00
jesopo
7549c0f998 support "$$" as "$" in ban-format 2019-09-24 15:27:35 +01:00
jesopo
5b82193f3b support $a (account) in ban-mask setting 2019-09-24 15:25:33 +01:00
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