// Only used for a pbguid public CBanInfo(string strSoldierName, string strGUID, string strIP, TimeoutSubset ctsBanLength, string strReason) { this.SoldierName = strSoldierName; this.Guid = strGUID; this.IpAddress = strIP; this.IdType = "pbguid"; this.BanLength = ctsBanLength; this.Reason = strReason; }
// Ban added public CBanInfo(string strBanType, string strId, TimeoutSubset ctsBanLength, string strReason) { this.IdType = strBanType; this.BanLength = ctsBanLength; this.Reason = strReason; if (String.Compare(this.IdType, "name") == 0 || String.Compare(this.IdType, "persona") == 0) { this.SoldierName = strId; } else if (String.Compare(this.IdType, "ip") == 0) { this.IpAddress = strId; } else if (String.Compare(this.IdType, "guid") == 0) { this.Guid = strId; } }