Bug - Fixed Exclude api.php from parsing for item/meat/adventure gain (and decoration)

zarqon

Well-known member
I didn't know api.php existed until Veracity's recent post about it. It's great!

I started to convert my clan's Treasurer to use this rather than parse messages.php, but ran into a problem: mafia parses items and meat gained on this page, so I need to refresh inventory after loading kmails this way (thus more than negating the smaller server load gained by using api.php).

I'm visiting: api.php?pwd&what=kmail&format=php&count=100&for=StashBot

It happens whether I use the PHP or JSON format. I also noted that mafia decorates the page -- adding [use] and [equip] links, etc. Which is not a bug, but is still unnecessary.
 

Veracity

Developer
Staff member
Revision 9248 does not do result parsing for api.php.
I'm not going to put special code in to exclude decoration, since you don't normally visit it in the relay browser.
 
Top