assert (not (GetInfo (106) or GetInfo (107)), "Not connected to MUD")
I want to be able to use wait without being connected. This is an arbitrary check that is better done by the caller of this function than by the function itself.
DoAfter timers default to not "active when disconnected" in an older version. I think, though I'm probably confusing you with someone else, that you said you used 4.40? DoAfter timers default to "active when disconnected" in a later version (I can't remember the exact version), so you'll want to update.
You're thinking of someone else. I always try to use the latest version. 4.51 in this case, including some of the changes that will be in 4.52. Granted, the files I'm working on are not exactly a proper install. I'll try downloading an official installer and see if anything changes.
Hmm, the change I'm thinking of was to the core executable. If you've got the latest, that shouldn't be it. Maybe wait.lua uses AddTimer and sets the flag itself? I'd look into it, but I'm not on my usual computer.