Store the channel keys in CoreNetwork again 149/head
authorBas Pape <baspape@gmail.com>
Thu, 24 Sep 2015 19:15:49 +0000 (21:15 +0200)
committerBas Pape <baspape@gmail.com>
Thu, 24 Sep 2015 19:15:49 +0000 (21:15 +0200)
commitf8851271f84e262bfd38f18aa76e78d20f4f5602
treed42e28f7426f44ac87c0d01b2474fa7025764e5e
parent17311326016f3654fd33a656b2a0c4ac95776db6
Store the channel keys in CoreNetwork again

The refactoring from 3146ad0 (and e0781ee) was not a true refactoring as
it changed behaviour: CoreIrcChannels (as opposed to CoreNetworks) are
ephemeral, which meant disconnecting or parting lost the channel key.
Keys are still kept by the channel's cipher, but synced from/to its network when
the constructor/destructor is called.

Fixes #1248
src/core/coreircchannel.cpp
src/core/corenetwork.h