mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 01:09:22 +01:00
relay_cb: respect allow_clientbot_pms in 'rpm' (#292)
This commit is contained in:
parent
7eb5e59842
commit
e85cc684a1
@ -201,6 +201,10 @@ def rpm(irc, source, args):
|
||||
elif not text:
|
||||
irc.reply('Error: No text given.')
|
||||
return
|
||||
elif not conf.conf.get('relay').get('allow_clientbot_pms'):
|
||||
irc.reply('Error: Private messages with users connected via Clientbot have been '
|
||||
'administratively disabled.')
|
||||
return
|
||||
|
||||
uid = irc.nickToUid(target)
|
||||
if not uid:
|
||||
|
Loading…
Reference in New Issue
Block a user