It will be better if this is not a static. You've added a flags parameter or a viewmode_banlist with a flags member to some of the methods. Simply pass the flags as a parameter rather than sometimes using a function parameter and other times this global variable.