Fixed loggerbot not leaving channels correctly (undefined function call)