广播添加sender参数

This commit is contained in:
xiongziliang
2018-02-09 15:50:21 +08:00
parent 4cf09bdaa1
commit b0a64d1e6f
7 changed files with 35 additions and 24 deletions

View File

@@ -148,7 +148,7 @@ inline void ShellSession::pleaseInputPasswd() {
});
};
auto flag = NoticeCenter::Instance().emitEvent(Broadcast::kBroadcastShellLogin,m_strUserName,passwd,invoker);
auto flag = NoticeCenter::Instance().emitEvent(Broadcast::kBroadcastShellLogin,m_strUserName,passwd,invoker,*this);
if(!flag){
//如果无人监听shell登录事件那么默认shell无法登录
onAuth("please listen kBroadcastShellLogin event");