use sr
This commit is contained in:
parent
34908967aa
commit
82a0fc0d36
@ -13,8 +13,8 @@ Bridge::Bridge(
|
|||||||
RegistryMessageModelI& rmm,
|
RegistryMessageModelI& rmm,
|
||||||
ConfigModelI& conf,
|
ConfigModelI& conf,
|
||||||
MessageCommandDispatcher* mcd
|
MessageCommandDispatcher* mcd
|
||||||
) : _cr(cr), _rmm(rmm), _conf(conf), _mcd(mcd) {
|
) : _cr(cr), _rmm(rmm), _rmm_sr(_rmm.newSubRef(this)), _conf(conf), _mcd(mcd) {
|
||||||
_rmm.subscribe(this, enumType::message_construct);
|
_rmm_sr.subscribe(RegistryMessageModel_Event::message_construct);
|
||||||
|
|
||||||
if (!_conf.has_bool("Bridge", "username_angle_brackets")) {
|
if (!_conf.has_bool("Bridge", "username_angle_brackets")) {
|
||||||
_conf.set("Bridge", "username_angle_brackets", true);
|
_conf.set("Bridge", "username_angle_brackets", true);
|
||||||
|
@ -15,6 +15,7 @@ class MessageCommandDispatcher;
|
|||||||
class Bridge : public RegistryMessageModelEventI {
|
class Bridge : public RegistryMessageModelEventI {
|
||||||
Contact3Registry& _cr;
|
Contact3Registry& _cr;
|
||||||
RegistryMessageModelI& _rmm;
|
RegistryMessageModelI& _rmm;
|
||||||
|
RegistryMessageModelI::SubscriptionReference _rmm_sr;
|
||||||
ConfigModelI& _conf;
|
ConfigModelI& _conf;
|
||||||
MessageCommandDispatcher* _mcd;
|
MessageCommandDispatcher* _mcd;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user