refactored sendfile and invite commands to not require names and to only work in chat windows