GameConnect / SourceBans

Advanced admin and ban management for the Source game engine
http://www.sourcebans.net
67 stars 30 forks source link

PATTERN_STATUS and getprofile action fix #44

Closed Desuuuu closed 8 years ago

Desuuuu commented 10 years ago

PATTERN_STATUS was outdated (two columns were missing from the pattern), so getprofile was not working

peace-maker commented 10 years ago

Those clientindex and rate columns in CS:GO are not present in older games e.g. CS:S. You should not group them to make them optional instead and keep the index in the loop the same.

Desuuuu commented 10 years ago

Maybe you could group new columns with existing ones for CSGO (with optional statements), or just match less data, since it's only used for Steam IDs?

ErikMinekus commented 8 years ago

An optional non-capturing group works:

/# +([0-9]+) +(?:[0-9]+ +)?"(.+)" +(STEAM_[0-9]:[0-9]:[0-9]+|\[U:[0-9]:[0-9]+\]) +([0-9:]+) +([0-9]+) +([0-9]+) +([a-zA-Z]+) +([0-9.:]+)/