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

networks: explicitly log successful network disconnects

This commit is contained in:
James Lu 2017-07-12 22:12:55 -07:00
parent 61db5d616d
commit 561319bc57

View File

@ -27,6 +27,7 @@ def disconnect(irc, source, args):
irc.error('No such network "%s" (case sensitive).' % netname)
return
irc.reply("Done. If you want to reconnect this network, use the 'rehash' command.")
log.info('Disconnecting network %r per %s', netname, irc.get_hostmask(source))
control.remove_network(network)