This formalises ways for plugins to send messages to the server.
With the functions in messaging.d, you can now send channel messages with void chan(string channel, string content), private query messages with void query(string nickname, string content), etc.
They're still sent synchronously from the main thread; this just makes it so that you don't have to do the manual "PRIVMSG %s :%s".format(...) dance.
This formalises ways for plugins to send messages to the server.
With the functions in
messaging.d
, you can now send channel messages withvoid chan(string channel, string content)
, private query messages withvoid query(string nickname, string content)
, etc.They're still sent synchronously from the main thread; this just makes it so that you don't have to do the manual
"PRIVMSG %s :%s".format(...)
dance.