Socket: Assert 'irc' is not None.