mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-12 05:02:33 +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:
parent
e0e929492e
commit
dd1444dcd9
@ -16,6 +16,10 @@ from pylinkirc.log import log
|
|||||||
def _login(irc, source, username):
|
def _login(irc, source, username):
|
||||||
"""Internal function to process logins."""
|
"""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, {})
|
logindata = conf.conf['login'].get('accounts', {}).get(username, {})
|
||||||
network_filter = logindata.get('networks')
|
network_filter = logindata.get('networks')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user