The main (in org) was offline, and correctly showed that way. The alt (out of org) was online and on guestlist, but both, your !alts command and Malosar's !is command had serious trouble with that alt. Two days ago, it all worked for me, and I only had this slight glitch that a main that was not in org did not correctly show as online. But his status did not show at all - guess that was just a problem with him not being on buddylist. Easy to fix, just removed and added him to guestlist. Now, since yesterday, I am having the strangest of problems with everyone that is on buddylist but not in org - guests namely. And from what I can tell, your code looks good. I never really understood the code in the !is modules, since to me it always looked like a buddy was added, but never removed. But your !alts code looks good to me.
I may be completely wrong, but I think the buddy commands are not working correctly for me. So this is not a real problem with your module anymore, but the base commands, and I am actually posting in the wrong thread. Will try to somehow pinpoint it.