Fix a bug in rolebans. (#7029)
This commit is contained in:
@@ -37,7 +37,7 @@ public sealed class RoleBanManager
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
var netChannel = e.Session.ConnectedClient;
|
var netChannel = e.Session.ConnectedClient;
|
||||||
await CacheDbRoleBans(e.Session.UserId, netChannel.RemoteEndPoint.Address, netChannel.UserData.HWId);
|
await CacheDbRoleBans(e.Session.UserId, netChannel.RemoteEndPoint.Address, netChannel.UserData.HWId.Length == 0 ? null : netChannel.UserData.HWId);
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task<bool> AddRoleBan(ServerRoleBanDef banDef)
|
private async Task<bool> AddRoleBan(ServerRoleBanDef banDef)
|
||||||
|
|||||||
Reference in New Issue
Block a user