Fixed irc message history handling