protocol/inspircd: Add 'm' to banmask prefix checks

Also, use strchr to test, rather than a series of comparisons.