As designed Bug while banning with warning points

I found bug while banning with Warning Points.

We have warning action with ban user when his Warning Points will be X. When we give X Warning Points to user ban action will be successfull, but in MySQL table `xf_user_ban` column `ban_user_id` will be zero, not moderator user id.

P.S. sorry for my bad english, it's not my first language.

Chris D

XenForo developer
Staff member
This is as designed.

It technically wouldn't be correct to log the user_id of the banning user, as the ban wasn't explicitly issued by a user, instead it was automatically triggered by the warning points action.

Bans issued in this way would be marked with a user_id of 0 and triggered value being 1.
Thank you for reply.
I checked now, but triggered value (it's a `triggered` field in xf_user_ban table, isn't it?) not 1, it's 0 too.