I have a security bot that basicatly I keep adding regular expresions for specific checks(nicks/idents/version), and I would like to organize it so that it just loops an array of regular expresions for specific checks instead of adding a bunch of if statements that basicatly do the same thing except with a different regular expresion.
Basicatly, the text file would look something like this hopefully:
Code: Select all
{[A-Z][a-z]+_[0-9][0-9]} Your chat client meets the criteria of a known spam bot. Please change your nick if this is not the case.
droolin