please get rid of the assertion check for IsConnected in wait.lua

Posted by Fiendish on Wed 07 Apr 2010 02:23 AM — 8 posts, 20,664 views.

USA Global Moderator #0
I hate this line in wait.lua

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.
Australia Forum Administrator #1
Commit 44a6c59.
USA Global Moderator #2
Hmm...
Now that the assertion check is gone, I need to figure out why it still doesn't work when not connected to the MUD. Bleh.
USA #3
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.
USA Global Moderator #4
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.
Amended on Fri 09 Apr 2010 08:11 PM by Fiendish
USA #5
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.
Australia Forum Administrator #6
It needed another change to wait.lua (not the one you asked for hehe).

Commit 816da57.
USA #7
I was right! *cackle* ^_^