Help: chat-initial-history
The "chat-initial-history" setting:
If this setting has an integer value of N, then when /chat first
starts up it initializes the screen with the N most recent chat
messages. If N is zero, then all chat messages are loaded.