Tip of the day: You can allow trusted users to send more messages per second without having to make them IRCOp. Especially useful for bots.

Translations:FAQ/425/en

From UnrealIRCd documentation wiki
Jump to navigation Jump to search

Solution 2

This is only for developers of bots:

  1. Make the client also support batch capability, see https://ircv3.net/specs/extensions/batch
  2. The bot can then detect the playback-on-join because the history playback is wrapped in a batch of the type chathistory:
:maintest.test.net BATCH +98yW6blDPLeAbEBdn3xJuI chathistory #test
@batch=98yW6blDPLeAbEBdn3xJuI;time=2023-03-18T15:47:04.944Z :[email protected] PRIVMSG #test :i like apples
@batch=98yW6blDPLeAbEBdn3xJuI;time=2023-03-18T16:38:33.953Z :s5667!~x@oper/netadmin.test.net PRIVMSG #test :that's fantastic
:maintest.test.net BATCH -98yW6blDPLeAbEBdn3xJuI

Note the chathistory in the first line.