View Single Post
07/19/15, 10:29 AM   #3
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
Originally Posted by merlight View Post
You can either get the value from UserSettings.txt (although unsure whether its value ingame reflects your current server or the previous one), or from add-on filter:
Lua Code:
  1. local realm = GetCVar("LastRealm")
  2. local realm_dash_char = GetAddOnManager():GetAddOnFilter()
Thanks!

Lua Code:
  1. local realm = GetCVar("LastRealm")

do the job.

But for me GetAddOnManager():GetAddOnFilter() is empty (it exist, but empty).