Added userlistinfo to switch statement

as well as a function to use it