Skip to content

Commit

Permalink
coretasks: better interactive help for .blocks command
Browse files Browse the repository at this point in the history
Eliminated the link (to a webpage we're probably going to delete) in
favor of directly specifying the available arguments, and added an
example of how to `del` a block. (The only examples before were `add`.)
  • Loading branch information
dgw committed Nov 10, 2023
1 parent b8bec6a commit a30aad5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sopel/coretasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1353,16 +1353,17 @@ def _get_sasl_pass_and_mech(bot):


@plugin.commands('blocks')
@plugin.example(r'.blocks del nick falsep0sitive', user_help=True)
@plugin.example(r'.blocks add host some\.malicious\.network', user_help=True)
@plugin.example(r'.blocks add nick sp(a|4)mb(o|0)t\d*', user_help=True)
@plugin.thread(False)
@plugin.unblockable
@plugin.priority('low')
@plugin.require_admin
def blocks(bot, trigger):
"""
Manage Sopel's blocking features.
See https://sopel.chat/usage/ignoring-people/ for usage notes.
"""Manage Sopel's blocking features.
Full argspec: `list [nick|host]` or `[add|del] [nick|host] pattern`
"""
STRINGS = {
"success_del": "Successfully deleted block: %s",
Expand Down

0 comments on commit a30aad5

Please sign in to comment.