View Single Post
02/25/18, 08:16 AM   #1
BoarGules
 
BoarGules's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2017
Posts: 34
Can an addon find out which server it is running on?

I have a user who switches between the EU and the NA servers and remarks that saved variables are being carried over from the one server to the other, which isn't really surprising, since they live in live\SavedVariables, which is used irrespective of which server the client is running against. There is a separate folder for the PTS, and there used to be a separate folder for the EU server (liveeu), but that went away over 2 years ago.

This is inconvenient because the addon saves things that relate to guild membership.

Is there a way for an addon to find out which server it is running on so that the code can know to invalidate the stored data?
  Reply With Quote