3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-01-11 20:52:42 +01:00

corecommands: block 'identify' from being used by command proxies such as networks.remote

This would have pretty bad unintentional consequences...
This commit is contained in:
James Lu 2017-08-07 16:31:28 -07:00
parent e0e929492e
commit dd1444dcd9

View File

@ -16,6 +16,10 @@ from pylinkirc.log import log
def _login(irc, source, username):
"""Internal function to process logins."""
if irc.is_internal_client(source):
irc.error("Cannot use 'identify' via a command proxy.")
return
logindata = conf.conf['login'].get('accounts', {}).get(username, {})
network_filter = logindata.get('networks')