more RAII and make ircnet name a string