[IRCMessage] replace range with enumerate