Fixes #1406 - ModCP Ban bug

Fixes https://github.com/mybb/mybb/issues/1406
Merge pull request #1408 from ATofighi/fix-1406

Fixes #1406 - ModCP Ban bug