Embed mIRC Color codes into a C# literal?

后端 未结 4 452
执笔经年
执笔经年 2021-02-04 11:27

I\'m working on a simple irc bot in C#, and I can\'t figure out how to embed the typical mirc control codes for bold/color etc into string literals.

Can someone point me

4条回答
  •  梦如初夏
    2021-02-04 12:00

    This might be down to the specific chat library I was using (ChatSharp), but I couldn't get the current accepted answer to work. What I ended up with was:

    channel.SendMessage((char)3 + "5,12hello");
    

提交回复
热议问题