move mode_info into banlist.c as it's not used anywhere else this will help with conversion to C++
build as C++