3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 09:19:23 +01:00

relay_cb: respect allow_clientbot_pms in 'rpm' (#292)

This commit is contained in:
James Lu 2016-08-31 19:51:52 -07:00
parent 7eb5e59842
commit e85cc684a1

View File

@ -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: