GMCP Message to open composer window

Post Reply
Barnabus
Posts: 12
Joined: Tue Dec 11, 2012 12:03 am

GMCP Message to open composer window

Post by Barnabus »

Hi,

Can someone give me an example GMCP message that opens the composer window in Mudlet 2.1? My test code is doing nothing (although gmcp.IRE.Composer contains text and title keys)

I'm sending:
IRE.Composer.Edit {"title": "Editor", "text": ""}

Thanks,

Barnabus

User avatar
Vadi
Posts: 5050
Joined: Sat Mar 14, 2009 3:13 pm

Re: GMCP Message to open composer window

Post by Vadi »

Try:

Code: Select all

IRE.Composer.Edit { "title": "Editor", "text": ""}
That is, a space after the first brace.

The reason being is that for the composer we made an exception and didn't pass parsing through the json library, but through a regex. I've made a note to improve that.

Post Reply