mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-25 12:12:53 +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:
|
elif not text:
|
||||||
irc.reply('Error: No text given.')
|
irc.reply('Error: No text given.')
|
||||||
return
|
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)
|
uid = irc.nickToUid(target)
|
||||||
if not uid:
|
if not uid:
|
||||||
|
Loading…
Reference in New Issue
Block a user