23 - Connected realms

What steps will reproduce the problem?
1. Connected realm /wholib [name]-[otherserver]

What is the expected output? What do you see instead?
WhoLib Doesn't Except name-server

What version of the product are you using?

Please provide any additional information below.
This fixes it under userinfo. The one I use.
     if name:find("%-") then --[[dbg("ignoring xrealm: "..name)]]
        local connectedServers = GetAutoCompleteRealms()
        if( connectedServers ) then
            local _, realmTemp = string.split("-", name)
            if( (realmTemp == connectedServers[1]) or (realmTemp == connectedServers[2]) ) then
                --keep going down in UserInfo
Could add GetRealmName() to same server names and take it off before sending back.. or make it mandatory that we take it off on our side, depending on what we are doing. This would make sure that on a connected realm if the server hits two names it will not come out unknown.. or we could fix that as well on our side.

Whisp.wholib:UserInfo(i {timeout = 0, callback = Whisp.ReturnedWhoData flags = Whisp.wholib.WHOLIB_FLAG_ALWAYS_CALLBACK})

function Whisp:ReturnedWhoData(name, timeT)
always returns 0 nil
or nil nil (if timeout > 0) let me know if I am not using correctly.
Currently using this to get cached data and works, just 40 seconds old. So having to run it a lot:

user, timeT = Whisp.wholib:UserInfo(i {timeout = 1})
if( user ) then
     Whisp:ReturnedWhoData(user, timeT)

Great Lib though!!

User When Change
mysticalos Feb 19, 2014 at 03:35 UTC Changed status from New to Fixed
deleted_3644977 Dec 29, 2013 at 00:06 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of deleted_3644977 deleted_3644977 Jan 03, 2014 at 06:30 UTC - 0 likes

    100% sure on US servers. never had prob. changed because can be more than 2 connected servers

    • lib.connectedServers = GetAutoCompleteRealms()
    • function
      • if name:find("%-") then
        • local tempAnswer = false
        • if( lib.connectedServers ) then
          • local _, realmTemp = string.split("-", name)
          • for i,v in pairs(lib.connectedServers) do
            • if( v == realmTemp ) then tempAnswer = true end
          • end
        • end
        • if( tempAnswer ) then
          • - -keep going down in UserInfo
        • else
          • return
        • end
      • end

    Do you also have problems with callbacks?

    edit. saw that you added it already, nice.

    Last edited Jan 03, 2014 by deleted_3644977
  • Avatar of mysticalos mysticalos Jan 01, 2014 at 09:25 UTC - 0 likes

    I wish i had looked at this before I did a far more ugly elaborate way

    Is this way 100 reliable or should I leave current ugly hard coded connection list?

    This repo is open btw so just commit to it if you have tested and good fixes.



Last updated
Feb 19, 2014
Dec 29, 2013
Fixed - Developer made requested changes. QA should verify.
Defect - A shortcoming, fault, or imperfection
Medium - Normal priority.

Reported by

Possible assignees