Skip to content

Commit

Permalink
admin: add privmsg restriction feedback for .say, .me, .raw
Browse files Browse the repository at this point in the history
Co-authored-by: dgw <[email protected]>
  • Loading branch information
ComputerTech312 and dgw committed Nov 22, 2024
1 parent cebfb38 commit 6ba207e
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 6ba207e

Please sign in to comment.