irc2sql: improved handling of netsplits