Bug - Fixed Chat command "uncloset" works, but doesn't

Sentrion

Member
The chat command for uncloseting something seems to work fine when used in relay chat, but in pure mafia chat, it doesn't. Instead, it reads as though it works (chat returns, for example, "Un-closeting 1 ten-leaf clover."), but upon trying to locate the uncloseted item in inventory, it doesn't exist, and can still be found in your closet. At first I suspected that perhaps mafia was auto-closeting clovers as soon as they were pulled, but this bug happens with any other item I've tried.

Detailed example:
Code:
[19:09] You have 1 bit of clingfilm.
[19:09] Closeting 1 bit of clingfilm.
[19:10] Sorry, I can't figure out what "clingfilm" means. Perhaps you have 0.
[19:10] Un-closeting 1 bit of clingfilm.
[19:10] Sorry, I can't figure out what "clingfilm" means. Perhaps you have 0.
 

slyz

Developer
That's strange. For me, using the /closet command from the Mafia chat worked, but not the /uncloset command. I'll try to investigate a little more.
 

Veracity

Developer
Staff member
I did this.

- In KoLmafia chat:
/closet 1 adder bladder
submits:
inventory.php?whichitem=2056&pwd&action=closetpush&qty=1&ajax=1
results in:
One adder bladder placed in your closet.
/uncloset 1 adder bladder
submits:
inventory.php?whichitem=2056&pwd&action=closetpull&qty=1&ajax=1
results in:
You don't have any of those in your closet.

In the Relay Browser:
/closet 1 adder bladder
submits:
inventory.php?whichitem=2056&pwd&action=closetpush&qty=1&ajax=1
results in:
One adder bladder placed in your closet.
/uncloset 1 adder bladder
submits:
inventory.php?whichitem=2056&pwd&action=closetpull&qty=1&ajax=1
results in:
You acquire an item: <b>adder bladder</b>

Something is fishy.
 

Veracity

Developer
Staff member
Ah ha. You need a GET to pull things from the closet with that URL, and when you submit the chat command in the Relay Browser, that's what happens. Not from the KoLmafia Chat Manager, though.
 
Top