Chats not working

Issue #56 resolved
hakaku created an issue

I don't believe this has been mentioned before, but asides from Continuum and maybe Chatnut, pretty much all other chat clients and bots are unable to use chat channels properly in all ASSS zones.

For example, on Starlight, Subchat2, and for mervbots, if you type //;2;hey//, it will be received as //1:Name> 2;hey//, while //;hey// becomes //1:Name> 1;hey//. In other words, everything is getting sent to the first chat channel, and not the specified one.

Subgame seems to handle these appropriately, would it be somehow possible for ASSS to provide the same compatibility?

Comments (3)

  1. hakaku reporter

    I did a bit more testing with Devastation's bot, and it seems to confirm my assumption that the chat message is being sent directly as ;2;blabla, where the first semi-colon is being interpreted by the biller as a message being sent to the first chat channel. In reality, the chat message should be sent as 2;blabla.

    For example, the following won't work due to the first semi-colon being sent (remove it, and it works fine):

    _Core.SendMessage(MessageType.Chat, ";" + pChannel.ToString() + ";" + pMessage, 0, IntPtr.Zero);

    I should correct myself in that mervbot may not have this issue, but at least Subchat2 and Starlight do. I guess Subgame checks if the message starts with a semi-colon and removes it before forwarding it to the biller.

  2. hakaku reporter

    I agree with Cerium that it's the client's problem, so I'm changing this to enhancement (feel free to wontfix this if you want), though I don't see either Subchat2 or Starlight fixing the issue anytime soon.

    A simple fix is to add the following (or something similar) in handle_chat in Chat.c :

    if (msg[0] == ';') msg++;

  3. Log in to comment