mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-17 14:01:03 +01:00
networks: explicitly log successful network disconnects
This commit is contained in:
parent
61db5d616d
commit
561319bc57
@ -27,6 +27,7 @@ def disconnect(irc, source, args):
|
|||||||
irc.error('No such network "%s" (case sensitive).' % netname)
|
irc.error('No such network "%s" (case sensitive).' % netname)
|
||||||
return
|
return
|
||||||
irc.reply("Done. If you want to reconnect this network, use the 'rehash' command.")
|
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)
|
control.remove_network(network)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user