Bigjango13 / MCPI-Addons

Addons to the MCPI api.
16 stars 4 forks source link

Fix chat logging override. #9

Closed Red-exe-Engineer closed 1 year ago

Red-exe-Engineer commented 1 year ago

Use text.c_str() when pushing to chat_log.

Bigjango13 commented 1 year ago

I don't think this does anything, except add a implict conversation from char* to std::string. Have you had problems that were fixed because of this?

Red-exe-Engineer commented 1 year ago

I don't think this does anything, except add a implict conversation from char* to std::string. Have you had problems that were fixed because of this?

Yes, before pollChatPosts() would return ["<Wallee> "] (not including the message) and logging text spat out garbage, using .c_str() fixed both of these.

Bigjango13 commented 1 year ago

I cannot reproduce this, sorry.