Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

admin: add feedback for require_privmsg commands #2641

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions sopel/builtins/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ def quit(bot, trigger):
bot.quit(quit_message)


@plugin.require_privmsg
@plugin.require_owner
@plugin.require_privmsg('This command only works as a private message.')
@plugin.command('raw')
@plugin.priority('low')
@plugin.example('.raw PRIVMSG NickServ :CERT ADD')
Expand All @@ -242,8 +242,8 @@ def raw(bot, trigger):
bot.write([trigger.group(2)])


@plugin.require_privmsg
@plugin.require_admin
@plugin.require_privmsg('This command only works as a private message.')
@plugin.command('say', 'msg')
@plugin.priority('low')
@plugin.example('.say #YourPants Does anyone else smell neurotoxin?')
Expand All @@ -265,8 +265,8 @@ def say(bot, trigger):
bot.say(message, channel)


@plugin.require_privmsg
@plugin.require_admin
@plugin.require_privmsg('This command only works as a private message.')
@plugin.command('me')
@plugin.priority('low')
def me(bot, trigger):
Expand Down
Loading