• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

As designed Bug while banning with warning points

#1
Hello.
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
#2
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.
 
#3
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.