where 5 is the number of messages to save If n is not specified all available messages sent to the current room will be taken into account

Add punctuation
where '5' is the number of messages to save. If n is not specified, all available messages sent to the current room will be taken into account.